aboutsummaryrefslogtreecommitdiff
path: root/libcpp/files.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-10-13 22:28:16 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2024-10-15 14:46:44 +0100
commit7f65f94917866c6b18d9698eec6451c1bf21e0f9 (patch)
treea72e9dbded9589aaf4a2c65b81cabf31e9701392 /libcpp/files.cc
parent7d15248d41dc45a4ba2d38ff532b672a5c0651d0 (diff)
downloadgcc-7f65f94917866c6b18d9698eec6451c1bf21e0f9.zip
gcc-7f65f94917866c6b18d9698eec6451c1bf21e0f9.tar.gz
gcc-7f65f94917866c6b18d9698eec6451c1bf21e0f9.tar.bz2
libstdc++: Implement LWG 3798 for range adaptors [PR106676]
LWG 3798 modified the iterator_category of the iterator types for transform_view, join_with_view, zip_transform_view and adjacent_transform_view, to allow the iterator's reference type to be an rvalue reference. libstdc++-v3/ChangeLog: PR libstdc++/106676 * include/bits/iterator_concepts.h (__cpp17_fwd_iterator): Use is_reference instead of is_value_reference. rvalue references. * include/std/ranges (transform_view:__iter_cat::_S_iter_cat): Likewise. (zip_transform_view::__iter_cat::_S_iter_cat): Likewise. (adjacent_transform_view::__iter_cat::_S_iter_cat): Likewise. (join_with_view::__iter_cat::_S_iter_cat): Likewise. * testsuite/std/ranges/adaptors/transform.cc: Check iterator_category when the transformation function returns an rvalue reference type. Reviewed-by: Patrick Palka <ppalka@redhat.com>
Diffstat (limited to 'libcpp/files.cc')
0 files changed, 0 insertions, 0 deletions