From 0701e754a20418f055ebae3e6332645a7da5bf6c Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Mon, 30 Jan 2023 12:08:32 -0800 Subject: [PATCH] #1983: runnable: move lambda --- src/vt/runnable/make_runnable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;