]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add missing std::move to ranges::copy/move/reverse_copy [PR101599]
authorPatrick Palka <ppalka@redhat.com>
Mon, 2 Aug 2021 19:30:15 +0000 (15:30 -0400)
committerPatrick Palka <ppalka@redhat.com>
Mon, 2 Aug 2021 19:30:15 +0000 (15:30 -0400)
commit14d8a5ae472ca5743016f37da2dd4770d83dea21
treeb2f302b2cbf13dc9d6d116f9dc15da7bf6805548
parent4414057186b227edf5b5efa527732bfcdf39d575
libstdc++: Add missing std::move to ranges::copy/move/reverse_copy [PR101599]

In passing, this also renames the template parameter _O2 to _Out2 in
ranges::partition_copy and uglifies two of its function parameters,
out_true and out_false.

PR libstdc++/101599

libstdc++-v3/ChangeLog:

* include/bits/ranges_algo.h (__reverse_copy_fn::operator()):
Add missing std::move in return statement.
(__partition_copy_fn::operator()): Rename templtae parameter
_O2 to _Out2.  Uglify function parameters out_true and out_false.
* include/bits/ranges_algobase.h (__copy_or_move): Add missing
std::move to recursive call that unwraps a __normal_iterator
output iterator.
* testsuite/25_algorithms/copy/constrained.cc (test06): New test.
* testsuite/25_algorithms/move/constrained.cc (test05): New test.
libstdc++-v3/include/bits/ranges_algo.h
libstdc++-v3/include/bits/ranges_algobase.h
libstdc++-v3/testsuite/25_algorithms/copy/constrained.cc
libstdc++-v3/testsuite/25_algorithms/move/constrained.cc
This page took 0.070139 seconds and 6 git commands to generate.