]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add missing constraint to operator+ for std::move_iterator
authorJonathan Wakely <jwakely@redhat.com>
Thu, 14 Nov 2024 10:50:34 +0000 (10:50 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 14 Nov 2024 15:39:03 +0000 (15:39 +0000)
commitf91e34644e66b2eb7f4930f17a30da9f49e7d4d2
treeba36f0c7c832be0603a04f3543e35f36568a877c
parentdec2158b2c39285a561a035ca383128c5c41ecf0
libstdc++: Add missing constraint to operator+ for std::move_iterator

This constraint was added by the One Ranges proposal (P0896R4) and
then fixed by LWG 3293, but it was missing from libstdc++.

libstdc++-v3/ChangeLog:

* include/bits/stl_iterator.h (operator+): Add constraint to
move_iterator operator.
* testsuite/24_iterators/move_iterator/rel_ops_c++20.cc:
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/move_iterator/rel_ops_c++20.cc