diff --git a/uppsrc/Core/Function.h b/uppsrc/Core/Function.h index a0e5adb6a..5b7580e14 100644 --- a/uppsrc/Core/Function.h +++ b/uppsrc/Core/Function.h @@ -91,7 +91,7 @@ template using Gate = Function; template -Event MemFn(Ptr object, Res (Class::*method)(ArgTypes...)) +Function MemFn(Ptr object, Res (Class::*method)(ArgTypes...)) { return [=](ArgTypes... args) { return (object->*method)(args...); }; }