diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-10 17:23:29 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-10 17:23:29 +0800 |
commit | d163bafa461779a3795818aa8c8b5238880ede24 (patch) | |
tree | 9eadf181655e293158cab095bb688cad9c0b1f18 /include/cru | |
parent | e37dd256e5bca4caf819d18c73cd2d11e06683df (diff) | |
download | cru-d163bafa461779a3795818aa8c8b5238880ede24.tar.gz cru-d163bafa461779a3795818aa8c8b5238880ede24.tar.bz2 cru-d163bafa461779a3795818aa8c8b5238880ede24.zip |
...
Diffstat (limited to 'include/cru')
-rw-r--r-- | include/cru/common/event.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<EventBase> { +class EventBase : public SelfResovable<EventBase> { friend EventRevoker; protected: @@ -116,6 +116,7 @@ struct IEvent { // It stores a list of event handlers. template <typename TEventArgs> class Event : public details::EventBase, public IEvent<TEventArgs> { + using typename IEvent<TEventArgs>::EventHandler; private: struct HandlerData { HandlerData(EventHandlerToken token, EventHandler handler) |