[libcxx-commits] [libcxx] [libc++] Protect more code against -Wdeprecated. (PR #130419)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 8 07:13:19 PST 2025
https://github.com/mordante created https://github.com/llvm/llvm-project/pull/130419
This seems needed when updating the CI Docker image.
>From fc3267c088c51b6cfc8759b7dc9d4e4e8802628d Mon Sep 17 00:00:00 2001
From: Mark de Wever <koraq at xs4all.nl>
Date: Sat, 8 Mar 2025 16:11:29 +0100
Subject: [PATCH] [libc++] Protect more code against -Wdeprecated.
This seems needed when updating the CI Docker image.
---
libcxx/include/__memory/allocator_traits.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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