alvaro said:
That's not at all the kind of thing I was talking about. Is the sf:: stuff important for your question? Can you make a tiny program that outputs something to standard out and still exhibits the relevant problem? Can you then post the entire program here so we can reproduce the problem ourselves?
as i said above i have problems with this code:
if (enemies1.empty()){
enemies1.erase(std::remove_if(enemies1.begin(), enemies1.end(), [sprite](const std::unique_ptr <enemy> &e) { return e->rect.getGlobalBounds().intersects(sprite.getGlobalBounds()); }), enemies1.end());
}
its not erasing last element of vector. i would like to erase enemies from my class this is my problem