Question with members functions and pointers functions

Alexandre Oliva oliva@lsd.ic.unicamp.br
Tue Feb 15 05:01:00 GMT 2000


On Feb 15, 2000, Pascal Francq <pfrancq@ulb.ac.be> 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     http://www.ic.unicamp.br/~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@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me



More information about the Gcc mailing list