Question with members functions and pointers functions

Alexandre Oliva
Tue Feb 15 05:01:00 GMT 2000

On Feb 15, 2000, Pascal Francq <> wrote:

> On Tue, 15 Feb 2000, you wrote:
>> Make your ASigFunc static.

> I know, but the problem is that I want to execute some code in the ASigFunc
> that the compiler doesn't compiled if the function is static:

Then you must explicitly pass on object ptr/ref to the static member
function.  You just can't assign a pointer to a non-static member
function to a pointer to function variable.

Alexandre Oliva     Enjoy Guaraná
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{,}   Write to mailing lists, not to me

More information about the Gcc mailing list