Skip to content

Commit

Permalink
#1983: runnable: move lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jan 30, 2023
1 parent 30f6054 commit 0701e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vt/runnable/make_runnable.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ struct RunnableMaker {
/**
* \brief Run the runnable immediately with a lambda
*/
void runLambda(ActionType action) {
void runLambda(ActionType&& action) {
setup();
impl_->runLambda(action);
impl_->runLambda(std::move(action));
delete impl_;
impl_ = nullptr;
is_done_ = true;
Expand Down

0 comments on commit 0701e75

Please sign in to comment.