diff mbox series

[3/3] libstdc++: Undeprecate std::pmr::polymorphic_allocator::destroy (P2875R4)

Message ID 20240620153618.2024734-3-jwakely@redhat.com
State New
Headers show
Series [1/3] libstdc++: Add [[deprecated]] to std::wstring_convert and std::wbuffer_convert | expand

Commit Message

Jonathan Wakely June 20, 2024, 3:35 p.m. UTC
Tested x86_64-linux.

-- >8 --

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 | 1 -
 1 file changed, 1 deletion(-)

Comments

Jonathan Wakely June 21, 2024, 9:21 a.m. UTC | #1
Pusahed to trunk now.

On Thu, 20 Jun 2024 at 16:41, Jonathan Wakely <jwakely@redhat.com> wrote:
>
> Tested x86_64-linux.
>
> -- >8 --
>
> 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 | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/libstdc++-v3/include/bits/memory_resource.h b/libstdc++-v3/include/bits/memory_resource.h
> index 022371245c1..5f50b296df7 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)
> --
> 2.45.2
>
diff mbox series

Patch

diff --git a/libstdc++-v3/include/bits/memory_resource.h b/libstdc++-v3/include/bits/memory_resource.h
index 022371245c1..5f50b296df7 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)