sorry not implemented: address of bound pointer-to-member function
A.P. Zijlstra
peter@mcs.nl
Wed Sep 30 08:07:00 GMT 1998
Alexandre Oliva wrote:
>
> A P Zijlstra <peter@mcs.nl> writes:
>
> > error: "sorry not implemented: address of bound pointer-to-member function".
> > What do I do?
>
> Just add the required parentheses to invoke the method and you're
> done.
>
> > Cfunc( if->some_function);
> Cfunc( if->some_function () );
> ^^
>
this will pass the return value of Interface::some_function to Cfunc,
and this is not desirable in my case. I want Cfunc to have the address
of some_function. Fredrik rightly pointed out that this is somewhat more
complex than I initially thought, this as the function pointer itself
has to 'remember' which class instanitasion it belongs to.
Peter
More information about the Gcc
mailing list