Wow, Laurent here...So, to summarize. My (and that guy's too) idea was to create std::vector of pointers to sf::Drawables. Idea was pretty nice, and everything was OK, until I went into deleting pointers. I created a typical loop using iterators, like this:
for(auto a = vector.begin(); a != vector.end();)
{
if(**a == this->sprite)
{
//remove
}
else
{ ++i; }
}
The problem is, I cannot compare dereferenced iterator to our sprite. Visual Studio even gives weird error about sf::Sprite != sf::Sprite. And that's pretty much the case.
I thought about using some ID, but I don;t know if it is something good.