Relative Content

Tag Archive for c++pointersmethods

Error calling class method pointer in C++

Given a class method pointer methodptr, if I call with a space between object pointer and method pointer dereference operator, I get the following error: expected unqualified-id before ‘*’ token. The same error with GCC and Clang. Why?