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 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:
class A
{
SomeObject *ptr;
public:
A(void);
void ASigFunc(unsigned int i) { if(ptr) ptr->DoSomething(i); }
};
--
Ir. Pascal Francq
Researcher
Université Libre de Bruxelles
Faculty of Applied Mechanics
Avenue F.D. Roosevelt, 50
CP 165/41
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 27 10