Skip to content

Commit

Permalink
Capture last by value instead of by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Zak-K-Abdi committed Sep 27, 2024
1 parent 1b22fae commit 87f72bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace hpx::parallel { namespace detail {
static hpx::future<bool> get_result(hpx::future<T>& itr, T& last)
{
return itr.then(
[&last](hpx::future<T> it) { return it.get() != last; });
[last](hpx::future<T> it) { return it.get() != last; });
}
};

Expand Down

0 comments on commit 87f72bd

Please sign in to comment.