diff --git a/src/sled/event_bus/event_bus.h b/src/sled/event_bus/event_bus.h index 27f67de..2c533aa 100644 --- a/src/sled/event_bus/event_bus.h +++ b/src/sled/event_bus/event_bus.h @@ -97,10 +97,8 @@ private: class EventBus { public: - class Subscriber : public sigslot::has_slots<> { - public: - virtual ~Subscriber() = default; - }; + template + using Subscriber = sigslot::has_slots; EventBus() = default; @@ -120,7 +118,7 @@ public: // On ([](const Event1 &){}) template - typename std::enable_if::value>::type + typename std::enable_if::value>::type Subscribe(C *instance, void (C::*method)(Event)) { { @@ -132,7 +130,7 @@ public: } template - typename std::enable_if::value>::type Unsubscribe(C *instance) + typename std::enable_if::value>::type Unsubscribe(C *instance) { EventRegistry::Instance().Unsubscribe(this, instance); {