cast a pointer to member function in derived class to a pointer to abstract member function
问题 I'm trying to do something that seems like it should be fairly common but I've been unable to find anyone discussing it. this post on stackoverflow is similar to what I'm trying to do, but not quite the same. I have an abstract base class: #ifndef _ABASECLASS_H_ #define _ABASECLASS_H_ using namespace std; #include <iostream> #define CALL_MBR_FUNC(object, ptr_to_mem_func) ((object).*(ptr_to_mem_func)) class aBaseClass { public: typedef void (aBaseClass::*aBaseClass_mem_func)(); int A; int B;