]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix LWG issues 3389 and 3390
authorPatrick Palka <ppalka@redhat.com>
Tue, 11 Feb 2020 15:45:26 +0000 (10:45 -0500)
committerPatrick Palka <ppalka@redhat.com>
Wed, 12 Feb 2020 21:30:19 +0000 (16:30 -0500)
commit99bbab9f77424c6387e7dfcba5c62937a8cff841
treea33c115f8a7f1140315bbc2a2c186678fe1dd639
parent02ce382cd323097f9d02fbf91e0a3f59ebcd3d30
libstdc++: Fix LWG issues 3389 and 3390

libstdc++-v3/ChangeLog:

LWG 3389 and LWG 3390
* include/bits/stl_iterator.h (move_move_iterator): Use std::move when
constructing the move_iterator with __i.
(counted_iterator::counted_iterator): Use std::move when initializing
M_current with __i.
* testsuite/24_iterators/counted_iterator/lwg3389.cc: New test.
* testsuite/24_iterators/move_iterator/lwg3390.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/testsuite/24_iterators/counted_iterator/lwg3389.cc [new file with mode: 0644]
libstdc++-v3/testsuite/24_iterators/move_iterator/lwg3390.cc [new file with mode: 0644]