January 21st, 2014, 10:05 AM
By the way, do any of you guys have a great link to where I can learn more about this: sprites.erase(remove_if(sprites.begin(), sprites.end(), hasCollided), sprites.end());? I get sprites.erase and...
January 21st, 2014, 09:54 AM
I just solved it! Thanks Philip :)
And also, thank you Paul McKenzie! You're seriously the coolest guy ever :)
January 21st, 2014, 09:43 AM
I changed it to:
if (innerHit)
{
sprites.erase(remove_if(sprites.begin(), sprites.end(), &Sname::Engine::hasCollided), sprites.end());
}
January 21st, 2014, 09:27 AM
Still not working. Now I get the following error: Error 1 error C3867: 'Sname::Engine::hasCollided': function call missing argument list; use '&Sname::Engine::hasCollided' to create a pointer to...
January 21st, 2014, 06:30 AM
Thank you! :) For the record, i AM using Visual Studio 2013/C++11. What would you change knowing that?
January 20th, 2014, 07:24 PM
And sorry for the lack of indentation.
January 20th, 2014, 07:23 PM
So I have this problem with not being able to iterate over a vector in a nestled for-loop. Here's the nestled for-loop:
bool innerHit = false;
for (std::vector<Sprite*>::iterator outerIter...