]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Undeprecate std::pmr::polymorphic_allocator::destroy (P2875R4)
authorJonathan Wakely <jwakely@redhat.com>
Tue, 18 Jun 2024 15:09:08 +0000 (16:09 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 21 Jun 2024 09:19:35 +0000 (10:19 +0100)
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.

libstdc++-v3/include/bits/memory_resource.h

index 022371245c1541edc80d60aedc31182f9fe5ea04..5f50b296df7b056fd16eb595981eccf4db5ec71d 100644 (file)
@@ -305,7 +305,6 @@ namespace pmr
 #endif
 
       template<typename _Up>
-       _GLIBCXX20_DEPRECATED_SUGGEST("allocator_traits::destroy")
        __attribute__((__nonnull__))
        void
        destroy(_Up* __p)