I cannot declare vector container for PhysicsShapePolygon
in header, I am getting error.
where is problem?
std::vector<PhysicsShapePolygon> allShapes;
cocos2d::PhysicsShapePolygon::~PhysicsShapePolygon’: cannot access protected member declared
Error C2248 ‘cocos2d::PhysicsShapePolygon::~PhysicsShapePolygon’: cannot access protected member declared in class ‘cocos2d::PhysicsShapePolygon’ (compiling source file …\Classes\AppDelegate.cpp) …\xmemory0 951