diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-09-06 13:36:02 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-09-07 08:08:12 +0100 |
commit | 6854e3ac71209ac786b878ef4abe6856a50c221d (patch) | |
tree | bec56718a88f540a7a3eb294070bc2f93c9c4b57 /contrib/gcc-changelog/git_email.py | |
parent | faea9d92db9a339f5c2cf949e4890947287d7ef9 (diff) | |
download | gcc-6854e3ac71209ac786b878ef4abe6856a50c221d.zip gcc-6854e3ac71209ac786b878ef4abe6856a50c221d.tar.gz gcc-6854e3ac71209ac786b878ef4abe6856a50c221d.tar.bz2 |
libstdc++: Simplify C++20 poison pill overloads (P2602R2)
This implements the C++23 change "Poison Pills are Too Toxic". This
makes sense to do unconditionally for C++20, as the corner cases that it
fixes are considered to be defects in the C++20 design (e.g. LWG3480 was
needed to fix directory iterators because of these pills being too
toxic).
libstdc++-v3/ChangeLog:
* include/bits/iterator_concepts.h (__imove::iter_move): Define
poison pill as deleted for consistency.
(__access::begin): Replace with a single declaration.
* include/bits/ranges_base.h (__access::end, __access::rbegin)
(__access::rend, __access::size): Likewise.
* include/bits/version.def (ranges): Update value for C++23.
* include/bits/version.h: Regenerate.
* libsupc++/compare (__compare): Add missing poison pill
overloads.
* testsuite/std/ranges/version_c++23.cc: Adjust expected value
of __cpp_lib_ranges.
* testsuite/std/ranges/access/p2602.cc: New test.
Diffstat (limited to 'contrib/gcc-changelog/git_email.py')
0 files changed, 0 insertions, 0 deletions