Portable way to obtain member function pointer (and invoke it)?
Timon Gehr
timon.gehr at gmx.ch
Sun Jul 8 13:03:17 PDT 2012
On 07/08/2012 09:57 PM, Alex Rønne Petersen wrote:
> Hi,
>
> Is there a portable way to obtain a pointer to a member function and
> invoke it with the this reference? I seem to recall some discussion
> about this on the NG in the past, but can't find the thread now.
>
auto mptr = function(Base o,Args args)=>o.member(args);
mptr(this, args);
More information about the Digitalmars-d-learn
mailing list