mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
THISFN improved (thanks Tom1)
git-svn-id: svn://ultimatepp.org/upp/trunk@11994 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b5bd719d00
commit
44bb6918b2
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ template <typename... ArgTypes>
|
|||
using Gate = Function<bool (ArgTypes...)>;
|
||||
|
||||
template <class Ptr, class Class, class Res, class... ArgTypes>
|
||||
Event<ArgTypes...> MemFn(Ptr object, Res (Class::*method)(ArgTypes...))
|
||||
Function<Res (ArgTypes...)> MemFn(Ptr object, Res (Class::*method)(ArgTypes...))
|
||||
{
|
||||
return [=](ArgTypes... args) { return (object->*method)(args...); };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue