]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Fix constraints for drop_view::begin() const [LWG 3482]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 21 Sep 2020 22:43:25 +0000 (23:43 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 21 Sep 2020 22:43:25 +0000 (23:43 +0100)
commitaecea4158f4e547af349657a3d16cb031a30ec3b
treeb8daa6e1dbccbceded81fb1dba99e9fc59091abe
parentbe3027e9c8366d92f68e6b3021c1cbe815648480
libstdc++: Fix constraints for drop_view::begin() const [LWG 3482]

libstdc++-v3/ChangeLog:

* include/std/ranges (drop_view::begin()): Adjust constraints
to match the correct condition for O(1) ranges::next (LWG 3482).
* testsuite/std/ranges/adaptors/drop.cc: Check that iterator is
cached for non-sized_range.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/drop.cc
This page took 0.05678 seconds and 5 git commands to generate.