From ec619b9538a1079423790a034e5deb2f3854bc61 Mon Sep 17 00:00:00 2001 From: wqking Date: Wed, 30 Mar 2022 14:59:33 +0800 Subject: [PATCH] Added virtual dtor to avoid compile warning --- include/eventpp/hetercallbacklist.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/eventpp/hetercallbacklist.h b/include/eventpp/hetercallbacklist.h index 04756a2..139ce72 100644 --- a/include/eventpp/hetercallbacklist.h +++ b/include/eventpp/hetercallbacklist.h @@ -52,6 +52,8 @@ protected: class HomoCallbackListTypeBase { public: + virtual ~HomoCallbackListTypeBase() {} + virtual bool empty() = 0; virtual bool doRemove(const HeterHandle_ & handle) = 0; virtual std::shared_ptr doClone() = 0;