From 44bb6918b22bb603fe3291cfd11f6ab49f5601a8 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 11 Jun 2018 13:49:35 +0000 Subject: [PATCH] THISFN improved (thanks Tom1) git-svn-id: svn://ultimatepp.org/upp/trunk@11994 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Function.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...); }; }