diff --git a/source/numem/events.d b/source/numem/events.d index 9459594..742c92d 100644 --- a/source/numem/events.d +++ b/source/numem/events.d @@ -23,7 +23,7 @@ public: /** Calls all of the event handlers */ - auto opCall(ref T caller, EventData data) { + auto opCall(Y)(auto ref Y caller, EventData data) if (is(T : Y)) { foreach(subscriber; subscribers) { subscriber(caller, data); }