Question with members functions and pointers functions

Pascal Francq pfrancq@ulb.ac.be
Tue Feb 15 02:52:00 GMT 2000


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


More information about the Gcc mailing list