Skip to content

Commit

Permalink
Merge pull request #6564 from STEllAR-GROUP/remove_move
Browse files Browse the repository at this point in the history
Remove superfluous HPX_MOVE()
  • Loading branch information
hkaiser authored Nov 7, 2024
2 parents 342d373 + 0e93d87 commit a882efc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,11 @@ namespace hpx { namespace lcos {
hpx::future<std::vector<hpx::future<std::vector<Result>>>> r)
{
std::vector<Result> res;
std::vector<hpx::future<std::vector<Result>>> fres =
HPX_MOVE(r.get());
std::vector<hpx::future<std::vector<Result>>> fres = r.get();

for (hpx::future<std::vector<Result>>& f : fres)
{
std::vector<Result> t = HPX_MOVE(f.get());
std::vector<Result> t = f.get();
res.reserve(res.capacity() + t.size());
std::move(t.begin(), t.end(), std::back_inserter(res));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ namespace hpx { namespace lcos {
Result operator()(
hpx::future<std::vector<hpx::future<Result>>> r) const
{
std::vector<hpx::future<Result>> fres = HPX_MOVE(r.get());
std::vector<hpx::future<Result>> fres = r.get();

HPX_ASSERT(!fres.empty());

Expand Down

0 comments on commit a882efc

Please sign in to comment.