Move IEventHandler out of Event to allow for forward declaration
This commit is contained in:
@@ -8,18 +8,19 @@
|
||||
|
||||
namespace openVulkanoCpp
|
||||
{
|
||||
class IEventHandler
|
||||
{
|
||||
public:
|
||||
virtual ~IEventHandler() = default;
|
||||
virtual void SetInvalid() = 0;
|
||||
};
|
||||
|
||||
template<typename... Arguments>
|
||||
class Event final
|
||||
{
|
||||
public:
|
||||
typedef std::function<void(Arguments...)> Function;
|
||||
|
||||
class IEventHandler
|
||||
{
|
||||
public:
|
||||
virtual ~IEventHandler() = default;
|
||||
virtual void SetInvalid() = 0;
|
||||
};
|
||||
|
||||
private:
|
||||
enum class EventHandlerType { STATIC, INSTANCED, INSTANCED_SHARED_PTR, INSTANCED_WEAK_PTR, FUNCTIONAL };
|
||||
|
||||
Reference in New Issue
Block a user