This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question with members functions and pointers functions
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