From 11c5cd64fe5ba7e6230d9ad8b0072270b20c112a Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Wed, 1 May 2024 09:26:16 +0000 Subject: [PATCH] fix deleter inline --- src/sled/task_queue/pending_task_safety_flag.h | 2 +- src/sled/timer/timer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sled/task_queue/pending_task_safety_flag.h b/src/sled/task_queue/pending_task_safety_flag.h index ba2815f..c05abe5 100644 --- a/src/sled/task_queue/pending_task_safety_flag.h +++ b/src/sled/task_queue/pending_task_safety_flag.h @@ -54,7 +54,7 @@ private: scoped_refptr flag_; }; -template>::value>> +template std::function SafeTask(scoped_refptr flag, F &&f) { diff --git a/src/sled/timer/timer.h b/src/sled/timer/timer.h index 61eddc1..34d97b6 100644 --- a/src/sled/timer/timer.h +++ b/src/sled/timer/timer.h @@ -19,7 +19,7 @@ class Timer; struct TimerThreadDeleter { TimerThreadDeleter() = default; TimerThreadDeleter(TaskQueueBase *owner); - inline void operator()(Timer *timer); + void operator()(Timer *timer); private: TaskQueueBase *owner_ = nullptr;