]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix up implementation of LWG 3533 [PR101589]
authorPatrick Palka <ppalka@redhat.com>
Mon, 2 Aug 2021 19:30:13 +0000 (15:30 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 12 Oct 2021 17:55:05 +0000 (13:55 -0400)
commitd187dfbd038a9be68ceb81a6ce4125d50cb453f9
tree8e0577cd038f2e895379f05677ade3173eceb23f
parent58873a565898550893165427ccbef343f1390b9c
libstdc++: Fix up implementation of LWG 3533 [PR101589]

In r12-569 I accidentally applied the LWG 3533 change to
elements_view::iterator::base instead to elements_view::base.

This patch corrects this, and also applies the corresponding LWG 3533
change to lazy_split_view::inner-iter::base now that we implement P2210.

PR libstdc++/101589

libstdc++-v3/ChangeLog:

* include/std/ranges (lazy_split_view::_InnerIter::base): Make
the const& overload unconstrained and return a const reference
as per LWG 3533.  Make unconditionally noexcept.
(elements_view::base): Revert accidental r12-569 change.
(elements_view::_Iterator::base): Make the const& overload
unconstrained and return a const reference as per LWG 3533.
Make unconditionally noexcept.

(cherry picked from commit 4414057186b227edf5b5efa527732bfcdf39d575)
libstdc++-v3/include/std/ranges