aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-06-18 16:09:08 +0100
committerJonathan Wakely <jwakely@redhat.com>2024-06-21 10:19:35 +0100
commitc3e237338eb7ffc90f3cc8d32a3971d17f6d0b31 (patch)
tree5cd1d776f619b036a75fb3fcf27a9bd341c72b7d
parent577225a268ad203647746d4ae98620da0354d0a0 (diff)
downloadgcc-c3e237338eb7ffc90f3cc8d32a3971d17f6d0b31.zip
gcc-c3e237338eb7ffc90f3cc8d32a3971d17f6d0b31.tar.gz
gcc-c3e237338eb7ffc90f3cc8d32a3971d17f6d0b31.tar.bz2
libstdc++: Undeprecate std::pmr::polymorphic_allocator::destroy (P2875R4)
This member function was previously deprecated, but that was reverted by P2875R4, approved earlier this year in Tokyo. Since it's not going to be deprecated in C++26, and so presumably not removed, there is no point in giving deprecated warnings for C++23 mode. libstdc++-v3/ChangeLog: * include/bits/memory_resource.h (polymorphic_allocator::destroy): Remove deprecated attribute.
-rw-r--r--libstdc++-v3/include/bits/memory_resource.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/memory_resource.h b/libstdc++-v3/include/bits/memory_resource.h
index 0223712..5f50b29 100644
--- a/libstdc++-v3/include/bits/memory_resource.h
+++ b/libstdc++-v3/include/bits/memory_resource.h
@@ -305,7 +305,6 @@ namespace pmr
#endif
template<typename _Up>
- _GLIBCXX20_DEPRECATED_SUGGEST("allocator_traits::destroy")
__attribute__((__nonnull__))
void
destroy(_Up* __p)