From ec4f49c1df6c5b8c604f0a7b6cc63e36fa6875a2 Mon Sep 17 00:00:00 2001 From: Coldwings Date: Thu, 20 Jul 2023 12:59:39 +0800 Subject: [PATCH] fix compile in c++17 onward (#162) Signed-off-by: Coldwings --- common/tuple-assistance.h | 3 +-- thread/thread11.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/common/tuple-assistance.h b/common/tuple-assistance.h index 775e94ec..1c254d8e 100644 --- a/common/tuple-assistance.h +++ b/common/tuple-assistance.h @@ -91,8 +91,7 @@ constexpr inline decltype(auto) apply(F&& f, Tuple&& t) { } #else -template -using template std::apply; +using std::apply; #endif template diff --git a/thread/thread11.h b/thread/thread11.h index be508299..bf2a1e99 100644 --- a/thread/thread11.h +++ b/thread/thread11.h @@ -28,7 +28,7 @@ namespace photon { template static void* __stub11(void*) { auto p = thread_reserved_space(CURRENT); - tuple_assistance::apply(p->first, p->second); + tuple_assistance::apply(std::move(p->first), std::move(p->second)); return nullptr; }