Fix breakage that I introduced in r238848
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@238870 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/scoped_allocator b/include/scoped_allocator
index 5864689..22e3a30 100644
--- a/include/scoped_allocator
+++ b/include/scoped_allocator
@@ -171,12 +171,20 @@
__get_poc_swap<_Allocs...>::value;
};
+template <class ..._Allocs> struct __get_is_always_equal;
+
+template <class _A0>
+struct __get_is_always_equal<_A0>
+{
+ static const bool value = allocator_traits<_A0>::is_always_equal::value;
+};
+
template <class _A0, class ..._Allocs>
-struct __get_poc_always_equal<_A0, _Allocs...>
+struct __get_is_always_equal<_A0, _Allocs...>
{
static const bool value =
allocator_traits<_A0>::is_always_equal::value ||
- __get_poc_always_equal<_Allocs...>::value;
+ __get_is_always_equal<_Allocs...>::value;
};
template <class ..._Allocs>
@@ -409,7 +417,7 @@
typedef integral_constant
<
bool,
- __get_poc_always_equal<outer_allocator_type, _InnerAllocs...>::value
+ __get_is_always_equal<outer_allocator_type, _InnerAllocs...>::value
> is_always_equal;
template <class _Tp>