Skip to content

Commit

Permalink
#1983: runnable: take action by &&
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Sep 28, 2022
1 parent f8d4a00 commit 305d00b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vt/runnable/runnable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void RunnableNew::setupHandlerElement(
obj_ = elm;
}

void RunnableNew::runLambda(ActionType action) {
void RunnableNew::runLambda(ActionType&& action) {
begin();
action();
end();
Expand Down
2 changes: 1 addition & 1 deletion src/vt/runnable/runnable.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ struct RunnableNew {
/**
* \brief Run the task as a lambda!
*/
void runLambda(ActionType action);
void runLambda(ActionType&& action);

#if vt_check_enabled(fcontext)
/**
Expand Down

0 comments on commit 305d00b

Please sign in to comment.