There is a class that contains the doX method and a pointer to the pDoX function.
class X { public: void (*pDoX)(); void doX(); X() { pDoX = doX; } };
If you compile the code, an error is displayed:
xc: In constructor 'X::X()':
xc:9: error: argument of type 'void (X::)()' does not match 'void (*)()'
How to carry out the assignment correctly?