libstdc++: Relax constraints on transform_view and elements_view iterators
authorJonathan Wakely <jwakely@redhat.com>
Mon, 21 Sep 2020 13:30:38 +0000 (14:30 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 21 Sep 2020 13:30:38 +0000 (14:30 +0100)
commit2ec58cfcea146a61755516ce4ed160827fe0b4ff
treeb1fcf569ab7b8253574c11eac18d5b08951063a1
parentf10ed928e2f8ecc2c859abff8f2f9296b11b8d95
libstdc++: Relax constraints on transform_view and elements_view iterators

libstdc++-v3/ChangeLog:

* include/std/ranges (transform_view, elements_view): Relax
constraints on operator- for iterators, as per LWG 3483.
* testsuite/std/ranges/adaptors/elements.cc: Check that we
can take the difference of two iterators from a non-random
access range.
* testsuite/std/ranges/adaptors/transform.cc: Likewise.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/elements.cc
libstdc++-v3/testsuite/std/ranges/adaptors/transform.cc