diff options
author | Patrick Palka <ppalka@redhat.com> | 2021-08-02 15:30:15 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2021-08-02 15:30:15 -0400 |
commit | 14d8a5ae472ca5743016f37da2dd4770d83dea21 (patch) | |
tree | b2f302b2cbf13dc9d6d116f9dc15da7bf6805548 /gcc/go/gofrontend/expressions.cc | |
parent | 4414057186b227edf5b5efa527732bfcdf39d575 (diff) | |
download | gcc-14d8a5ae472ca5743016f37da2dd4770d83dea21.zip gcc-14d8a5ae472ca5743016f37da2dd4770d83dea21.tar.gz gcc-14d8a5ae472ca5743016f37da2dd4770d83dea21.tar.bz2 |
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.
Diffstat (limited to 'gcc/go/gofrontend/expressions.cc')
0 files changed, 0 insertions, 0 deletions