Hello guys! Here is my code snippet and the compiler spew out some error which I cannot resolve
vector< shared_ptr< SpriteAssets > > _projectiles;
_projectiles.push_back( new ProjectileObjects() );
How can this be an error???
I do not understand ProjectileObjects is a SpriteAsset.
I have tried replacing ProjectileObjects on the shared_ptr and still I got the same error.
I have made the code simpler because this is the only part I got stuck.
here is the error
main.cpp|83|error: no matching function for call to 'std::vector<std::tr1::shared_ptr<SpriteAssets> >::push_back(ProjectileObjects*)'|
I need help.