[libcxx-commits] [libcxx] [libc++] LWG 3821 uses_allocator_construction_args should have overload for pair-like (PR #66939)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 27 09:17:19 PDT 2023
================
@@ -36,7 +37,10 @@ inline constexpr bool __is_std_pair = false;
template <class _Type1, class _Type2>
inline constexpr bool __is_std_pair<pair<_Type1, _Type2>> = true;
-template <class _Type, class _Alloc, class... _Args, __enable_if_t<!__is_std_pair<_Type>, int> = 0>
+template <class _Tp>
+inline constexpr bool __is_cv_std_pair = __is_std_pair<remove_cv_t<_Tp>>;
----------------
ldionne wrote:
This seems to be the resolution of http://wg21.link/LWG3677. We should add tests for this and mark it as completed as well.
https://github.com/llvm/llvm-project/pull/66939
More information about the libcxx-commits
mailing list