libstdc++: LWG 3301 transform_view::iterator has incorrect iterator_category
authorPatrick Palka <ppalka@redhat.com>
Mon, 24 Feb 2020 21:38:07 +0000 (16:38 -0500)
committerPatrick Palka <ppalka@redhat.com>
Tue, 25 Feb 2020 18:04:32 +0000 (13:04 -0500)
commit510bd1c178f3719df7148dd584d30acc2595dc3c
tree0c8d33fb33c43e3ad04b302c0ab6c6dc898f49e1
parent7f0f108309a881fe9e84a9c0b9a6f13b24a7886e
libstdc++: LWG 3301 transform_view::iterator has incorrect iterator_category

libstdc++-v3/ChangeLog:

LWG 3301 transform_view::_Iterator has incorrect iterator_category
* include/std/ranges (transform_view::_Iterator::_S_iter_cat): Adjust
determination of iterator_category as per LWG 3301.
* testsuite/std/ranges/adaptors/transform.cc: Augment test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/transform.cc