aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_email.py
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-09-05 22:07:22 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-09-07 08:05:15 +0100
commit9f41791eff82d5f41f16204cf092b7888b6c7a8d (patch)
treef51690ad1526aa4c1478a04a21305c546f7cf087 /contrib/gcc-changelog/git_email.py
parent833733702a7037b175f15daee85df1d64140ec05 (diff)
downloadgcc-9f41791eff82d5f41f16204cf092b7888b6c7a8d.zip
gcc-9f41791eff82d5f41f16204cf092b7888b6c7a8d.tar.gz
gcc-9f41791eff82d5f41f16204cf092b7888b6c7a8d.tar.bz2
libstdc++: Relax range adaptors for move-only types (P2494R2)
This is a C++23 feature that relaxes the constraints on some range adaptors, to support move-only types. libstdc++-v3/ChangeLog: * include/bits/version.def (ranges): Update value. * include/bits/version.h: Regenerate. * include/std/ranges (__detail::__boxable): Use move_constructible instead of copy_constructible for C++23. (__detail::__box<T>): Adjust constraints for partial specialization. (single_view, transform_view): Use __box_constructible instead of copy_constructible in constraints. (zip_transform_view, adjacent_transform_view, repeat_view): Use move_constructible instead of copy_constructible in constraints. * testsuite/std/ranges/adaptors/adjacent_transform/1.cc: Check construction from move-only argument. * testsuite/std/ranges/adaptors/transform.cc: Likewise. * testsuite/std/ranges/repeat/1.cc: Likewise. * testsuite/std/ranges/single_view.cc: Likewise. * testsuite/std/ranges/zip_transform/1.cc: Likewise. * testsuite/std/ranges/version_c++23.cc: Adjust expected value of __cpp_lib_ranges.
Diffstat (limited to 'contrib/gcc-changelog/git_email.py')
0 files changed, 0 insertions, 0 deletions