diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-06-09 10:11:00 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-06-09 10:32:43 +0100 |
commit | 5bfcfe3087eb05b76395c9efbfc1abbf3f9e1a03 (patch) | |
tree | 3b61ba37fe120f659d2a14e4cc48088ffec0c213 /gcc/objcp | |
parent | 174e75a210753b68de0f2c398a13ace0f512e35b (diff) | |
download | gcc-5bfcfe3087eb05b76395c9efbfc1abbf3f9e1a03.zip gcc-5bfcfe3087eb05b76395c9efbfc1abbf3f9e1a03.tar.gz gcc-5bfcfe3087eb05b76395c9efbfc1abbf3f9e1a03.tar.bz2 |
libstdc++: Add warnings for some C++23 deprecations
LWG 3036 deprecates std::pmr::polymorphic_allocator<T>::destroy in
favour of the equivalent member of std::allocator_traits.
LWG 3170 deprecates std::allocator<T>::is_always_equal in favour of
the equivalent member of std::allocator_traits.
This also updates a comment to note that we support the LWG 3541 change
(even before the issue was opened).
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* include/bits/allocator.h (allocator::is_always_equal): Deprecate.
* include/bits/iterator_concepts.h (indirectly_readable_traits):
Add LWG issue number to comment.
* include/std/memory_resource (polymorphic_allocator::release):
Deprecate.
* testsuite/20_util/allocator/requirements/typedefs.cc: Add
dg-warning for deprecation. Also check std::allocator<void>.
Diffstat (limited to 'gcc/objcp')
0 files changed, 0 insertions, 0 deletions