Browse - Programming Tips - How do I call a pointer to a member function?

Date: 2011jul7
Language: C++

Q.  How do I call a pointer to a member function?

A.  Use this handy macro:

#define callMemberFunction(object,ptrToMember) ((object).*(ptrToMember))