diff --git a/src/parallel/HighsTaskExecutor.h b/src/parallel/HighsTaskExecutor.h index e1f98376ad..7e2c699b15 100644 --- a/src/parallel/HighsTaskExecutor.h +++ b/src/parallel/HighsTaskExecutor.h @@ -128,8 +128,7 @@ class HighsTaskExecutor { for (int i = 1, numThreads = static_cast(workerDeques.size()); i < numThreads; ++i) { - workerThreads.emplace_back( - std::move(std::thread(&HighsTaskExecutor::run_worker, i, this))); + workerThreads.emplace_back(&HighsTaskExecutor::run_worker, i, this); } }