From 71862e2ebbf91527e0ca18ae44757425797b1f9e Mon Sep 17 00:00:00 2001 From: Tomasz Sobczyk Date: Mon, 19 Oct 2020 13:27:39 +0200 Subject: [PATCH] remove incorrect move in execute_with_workers --- src/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread.cpp b/src/thread.cpp index 2ecd167a..72333078 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -191,7 +191,7 @@ void ThreadPool::execute_with_workers(std::function worker) { for(Thread* th : *this) { - th->execute_with_worker(std::move(worker)); + th->execute_with_worker(worker); } }