diff --git a/src/vt/runnable/make_runnable.h b/src/vt/runnable/make_runnable.h index 499f4d10de..6e50498120 100644 --- a/src/vt/runnable/make_runnable.h +++ b/src/vt/runnable/make_runnable.h @@ -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;