diff --git a/openVulkanoCpp/Base/Event.hpp b/openVulkanoCpp/Base/Event.hpp index 4c9fc83..d7a0b29 100644 --- a/openVulkanoCpp/Base/Event.hpp +++ b/openVulkanoCpp/Base/Event.hpp @@ -8,18 +8,19 @@ namespace openVulkanoCpp { + class IEventHandler + { + public: + virtual ~IEventHandler() = default; + virtual void SetInvalid() = 0; + }; + template class Event final { public: typedef std::function Function; - class IEventHandler - { - public: - virtual ~IEventHandler() = default; - virtual void SetInvalid() = 0; - }; private: enum class EventHandlerType { STATIC, INSTANCED, INSTANCED_SHARED_PTR, INSTANCED_WEAK_PTR, FUNCTIONAL };