#pragma once #include #include "EventHandler.h" namespace crepe { // Implementation of EventHandlerWrapper constructor template EventHandlerWrapper::EventHandlerWrapper(const EventHandler & handler) : handler(handler) {} // Implementation of EventHandlerWrapper::call template bool EventHandlerWrapper::call(const Event & e) { return this->handler(static_cast(e)); } } //namespace crepe