[libcxx-commits] [libcxx] fd973d2 - [libc++] Protect more code against -Wdeprecated. (#130419)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Mar 9 09:34:03 PDT 2025
Author: Mark de Wever
Date: 2025-03-09T17:33:59+01:00
New Revision: fd973d251213c8272074bdd2b12bea8484a4231a
URL: https://github.com/llvm/llvm-project/commit/fd973d251213c8272074bdd2b12bea8484a4231a
DIFF: https://github.com/llvm/llvm-project/commit/fd973d251213c8272074bdd2b12bea8484a4231a.diff
LOG: [libc++] Protect more code against -Wdeprecated. (#130419)
This seems needed when updating the CI Docker image.
Added:
Modified:
libcxx/include/__memory/allocator_traits.h
Removed:
################################################################################
diff --git a/libcxx/include/__memory/allocator_traits.h b/libcxx/include/__memory/allocator_traits.h
index 2d9ab847e9f25..57b591e5b4b31 100644
--- a/libcxx/include/__memory/allocator_traits.h
+++ b/libcxx/include/__memory/allocator_traits.h
@@ -138,6 +138,7 @@ template <class _Alloc>
using __propagate_on_container_swap _LIBCPP_NODEBUG =
__detected_or_t<false_type, __propagate_on_container_swap_member, _Alloc>;
+_LIBCPP_SUPPRESS_DEPRECATED_PUSH
// __is_always_equal
template <class _Tp>
using __is_always_equal_member _LIBCPP_NODEBUG = typename _Tp::is_always_equal;
@@ -147,7 +148,6 @@ using __is_always_equal _LIBCPP_NODEBUG =
__detected_or_t<typename is_empty<_Alloc>::type, __is_always_equal_member, _Alloc>;
// __allocator_traits_rebind
-_LIBCPP_SUPPRESS_DEPRECATED_PUSH
template <class _Tp, class _Up, class = void>
struct __has_rebind_other : false_type {};
template <class _Tp, class _Up>
More information about the libcxx-commits
mailing list