From d9a2a1861e6307a3563538e1bdc45a55b29bd5b1 Mon Sep 17 00:00:00 2001 From: youngwolf Date: Sat, 11 Feb 2023 11:13:28 +0800 Subject: [PATCH] Fix the stand alone usage of the timer. --- include/ascs/timer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ascs/timer.h b/include/ascs/timer.h index 94a7349..d6396e4 100644 --- a/include/ascs/timer.h +++ b/include/ascs/timer.h @@ -195,8 +195,8 @@ protected: } void reset_io_context_refs() {if (0 == io_context_refs) add_io_context_refs(1);} - virtual void attach_io_context(asio::io_context& io_context_, unsigned refs) = 0; - virtual void detach_io_context(asio::io_context& io_context_, unsigned refs) = 0; + virtual void attach_io_context(asio::io_context& io_context_, unsigned refs) {} + virtual void detach_io_context(asio::io_context& io_context_, unsigned refs) {} private: typedef std::list container_type; -- GitLab