]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement LWG 3391 changes to move/counted_iterator::base()
authorPatrick Palka <ppalka@redhat.com>
Thu, 6 May 2021 13:11:42 +0000 (09:11 -0400)
committerPatrick Palka <ppalka@redhat.com>
Thu, 6 May 2021 13:11:42 +0000 (09:11 -0400)
commit08f3287eefea1d7c244db795d018870e8148d1c8
tree7f87f25a172b0a08b76bdcbcbcf6a96244cb4ac4
parentee5361a16ddf478113dc5084d08b8c9ba9e4735e
libstdc++: Implement LWG 3391 changes to move/counted_iterator::base()

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (move_iterator::base): Make the
const& overload unconstrained and return a const reference as
per LWG 3391.  Make unconditionally noexcept.
(counted_iterator::base): Likewise.
* testsuite/24_iterators/move_iterator/lwg3391.cc: New test.
* testsuite/24_iterators/move_iterator/move_only.cc: Adjust
has_member_base concept to decay-copy the result of base().
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3391.cc [new file with mode: 0644]
libstdc++-v3/testsuite/24_iterators/move_iterator/move_only.cc