From 1e713c9370088ff363329f9b940bf63853842191 Mon Sep 17 00:00:00 2001 From: feixintianxia Date: Wed, 22 Nov 2023 23:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0std::forward?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Thread/threadgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Thread/threadgroup.h b/src/Thread/threadgroup.h index 67b1644b3..21d689ea5 100644 --- a/src/Thread/threadgroup.h +++ b/src/Thread/threadgroup.h @@ -47,7 +47,7 @@ class thread_group { template std::thread *create_thread(F &&threadfunc) { - auto thread_new = std::make_shared(threadfunc); + auto thread_new = std::make_shared(std::forward(threadfunc)); _thread_id = thread_new->get_id(); _threads[_thread_id] = thread_new; return thread_new.get();