so the calling source should be
CCLayerColor* pLayer = CCLayerColor::node();
A bit ugly… Is there a more elegant approach? The objc code is
CCLayerColor* layer = [CCLayerColor node];
How beautiful it is!
I would like to write it into marco in early versions, it’s more convenience than function template (not increase the binary size), but Ming against this idea.