Ok I read Bregmas link, but I'm still having some issues when it comes to setting the address of the pointer.
This is what I have now:-
Character.h
#define CALL_MEMBER_FUNC(object,ptrToMember) ((object).*(ptrToMember)) class Character{public:Character(void);~Character(void);//All the other funcitonsvoid Sleep();private://All the other variables};typedef void (Character::*MemberFunctionPointer)(void) const;
Character.cpp
MemberFunctionPointer pDecisionFunciton;pDecisionFunciton = &Sleep;
And still getting the error
: error C2276: '&' : illegal operation on bound member function expression
Is there something that I'm missing?