What type can hold member-function-pointers of difference classes in C++?
- by Zach
Hi all,
I need an array to hold member-function-pointers of different classes. How can I define the array?
The code should look like this :
arr[0] = &CMyClass::FuncX;
arr[1] = &CYourClass::FuncY;
arr[2] = &CHerClass::FuncZ;
I tried void*, but it doesn't work.
Thanks.
Best regards,
Zach@Shine