From 5821b1a45a6d5eca73eb51e8cb92ee672c63c4a7 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 7 Oct 2024 16:08:57 +0200 Subject: [PATCH] Make newer D compilers happy. --- source/numem/events.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }