From 440b6ca0e50bf2e18e7f49626c38820f4290e975 Mon Sep 17 00:00:00 2001 From: GeorgH93 Date: Sun, 25 Jul 2021 13:37:21 +0200 Subject: [PATCH] Move IEventHandler out of Event to allow for forward declaration --- openVulkanoCpp/Base/Event.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 };