aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-10-13 21:47:14 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2024-10-14 22:07:28 +0100
commitdde19c600c3c8a1d765c9b4961d2556e89edad14 (patch)
tree46edaa15d8c3f5635def484f7339a9101149f672 /libcpp
parentcacbb4daac3e9a9d86992fef1a7c607b4cee5f22 (diff)
downloadgcc-dde19c600c3c8a1d765c9b4961d2556e89edad14.zip
gcc-dde19c600c3c8a1d765c9b4961d2556e89edad14.tar.gz
gcc-dde19c600c3c8a1d765c9b4961d2556e89edad14.tar.bz2
libstdc++: Implement LWG 3564 for ranges::transform_view
The _Iterator<true> type returned by begin() const uses const F& to transform the elements, so it should use const F& to determine the iterator's value_type and iterator_category as well. This was accepted into the WP in July 2022. libstdc++-v3/ChangeLog: * include/std/ranges (transform_view:_Iterator): Use const F& to determine value_type and iterator_category of _Iterator<true>, as per LWG 3564. * testsuite/std/ranges/adaptors/transform.cc: Check value_type and iterator_category. Reviewed-by: Patrick Palka <ppalka@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions