]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement LWG 4166 changes to concat_view::end()
authorPatrick Palka <ppalka@redhat.com>
Tue, 22 Oct 2024 21:01:59 +0000 (17:01 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 22 Oct 2024 21:01:59 +0000 (17:01 -0400)
commitf191c8301545658543773ba3d0e6f3f0927529e0
treeadd8e16c85cb94160f9969ba2e2a284395850983
parenta6db5908a55adbef0a0dc1eb2a22743064fe17b8
libstdc++: Implement LWG 4166 changes to concat_view::end()

This patch proactively implements the proposed resolution for this LWG
issue, which seems straightforward and slated to get approved as-is.

(No _GLIBCXX_RESOLVE_LIB_DEFECTS code comment is added since concat_view
is C++26, so this isn't a defect against a published standard.)

libstdc++-v3/ChangeLog:

* include/std/ranges (concat_view::begin): Add space after
'requires' starting a requires-clause.
(concat_view::end): Likewise.  Refine condition for returning an
iterator rather than default_sentinel as per LWG 4166.
* testsuite/std/ranges/concat/1.cc (test03): Verify LWG 4166
example.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/concat/1.cc