Skip to content

Commit

Permalink
Make newer D compilers happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Oct 7, 2024
1 parent 633ed6a commit 5821b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/numem/events.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5821b1a

Please sign in to comment.