I get Expected unqualified-id from xcode of this piece of code. I'm working with cocos2d-x 3.x but it's not related to this question.
in CCNode.h
virtual float getGlobalZOrder() const { return _globalZOrder; }
in my cpp
typedef float (Node::*SomeFunc)() const;
SomeFunc f = &Node::getGlobalZOrder;
Node * node = .....;
node->(*f)(); <-Expected unqualified-id
why I get the compile error?