Skip to content

Commit fd973d2

Browse files
authored
[libc++] Protect more code against -Wdeprecated. (#130419)
This seems needed when updating the CI Docker image.
1 parent 7c4ef49 commit fd973d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__memory/allocator_traits.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ template <class _Alloc>
138138
using __propagate_on_container_swap _LIBCPP_NODEBUG =
139139
__detected_or_t<false_type, __propagate_on_container_swap_member, _Alloc>;
140140

141+
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
141142
// __is_always_equal
142143
template <class _Tp>
143144
using __is_always_equal_member _LIBCPP_NODEBUG = typename _Tp::is_always_equal;
@@ -147,7 +148,6 @@ using __is_always_equal _LIBCPP_NODEBUG =
147148
__detected_or_t<typename is_empty<_Alloc>::type, __is_always_equal_member, _Alloc>;
148149

149150
// __allocator_traits_rebind
150-
_LIBCPP_SUPPRESS_DEPRECATED_PUSH
151151
template <class _Tp, class _Up, class = void>
152152
struct __has_rebind_other : false_type {};
153153
template <class _Tp, class _Up>

0 commit comments

Comments
 (0)