class C
{
public:
void (C::*FunctionPtr) ( );
void FunctionToCall( ) { }
};
void main ( )
{
C Test;
Test.FunctionPtr = Test.FunctionToCall; // Compiles fine.
Test.FunctionPtr( ); // ERROR
}
When I try to call FunctionPtr(), the compiler says the term does not evaluate to a function. So, how do I do this?
~CGameProgrammer( );