From d163bafa461779a3795818aa8c8b5238880ede24 Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Wed, 10 Jul 2019 17:23:29 +0800 Subject: ... --- include/cru/common/event.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/cru/common/event.hpp') diff --git a/include/cru/common/event.hpp b/include/cru/common/event.hpp index d08bcbea..2e4b82b4 100644 --- a/include/cru/common/event.hpp +++ b/include/cru/common/event.hpp @@ -17,7 +17,7 @@ namespace details { // It erases event args types and provides a // unified form to create event revoker and // revoke(remove) handler. -class EventBase : private SelfResovable { +class EventBase : public SelfResovable { friend EventRevoker; protected: @@ -116,6 +116,7 @@ struct IEvent { // It stores a list of event handlers. template class Event : public details::EventBase, public IEvent { + using typename IEvent::EventHandler; private: struct HandlerData { HandlerData(EventHandlerToken token, EventHandler handler) -- cgit v1.2.3