Skip to content

Commit

Permalink
#1983: runnable: move lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and cz4rs committed Mar 27, 2023
1 parent b42b8cd commit 4121990
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 4121990

Please sign in to comment.