libstdc++: Implement LWG 3904 change to lazy_split_view's iterator
commitaa65771427d32299cffecea64cbb766411aa8faf
authorPatrick Palka <ppalka@redhat.com>
Wed, 12 Apr 2023 17:04:36 +0000 (12 13:04 -0400)
committerPatrick Palka <ppalka@redhat.com>
Wed, 12 Apr 2023 17:04:36 +0000 (12 13:04 -0400)
treeca22b0a9b356596319f9b9315784b7f8075abbfc
parent13669111e7219ed1f71b2079c7b5794c11f6e3ce
libstdc++: Implement LWG 3904 change to lazy_split_view's iterator

libstdc++-v3/ChangeLog:

* include/std/ranges (lazy_split_view::_OuterIter::_OuterIter):
Propagate _M_trailing_empty in the const-converting constructor
as per LWG 3904.
* testsuite/std/ranges/adaptors/adjacent/1.cc (test04): Correct
assertion.
* testsuite/std/ranges/adaptors/lazy_split.cc (test12): New test.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/adaptors/adjacent/1.cc
libstdc++-v3/testsuite/std/ranges/adaptors/lazy_split.cc