[libcxx-commits] [libcxx] [libcxx] Implementation of P1831R1 (PR #101439)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 4 03:34:40 PDT 2024
================
@@ -741,6 +741,14 @@ typedef __char32_t char32_t;
# define _LIBCPP_DEPRECATED_WITH_CHAR8_T
# endif
+// P1831R1 deprecated many uses of volatile, but the way attributes work with template specializations require this work-around to always raise a warning.
+template <class _Tp, bool _cxx20 = _LIBCPP_STD_VER >= 20>
----------------
mordante wrote:
`_cxx20` is not a proper ugly name. An ugly name is `_UPPERCASE` or `__lowercase`.
https://github.com/llvm/llvm-project/pull/101439
More information about the libcxx-commits
mailing list