I am trying to use the smart pointer specification at the Cocos2d-x extensions (for C++). When I try to declare a pointer in my header as:
and then I initialize it on my .cpp body,
pPlayerData = CCPointer (new PlayerData(PLAYER_ONE));
all the places where I use the smart pointer style pPlayerData->DoSomething();
are apparently fine, but I’ve got the error:
error C2039: ‘retain’ : is not a member of PlayerData
I am using Windows 7 and VS2010. I also have tried to find some information about the extensions with no lucky.
Any thoughts about what I am doing wrong here? (thanks in advance)