I realise this may be a duplicate, but I have searched through many forums and questions and know what causes the problem, but can’t spot it in here. I am using SFML 2.0, and I have traced the error to:
void GameObjectManager::DrawAll(sf::RenderWindow& wnd){
std::map<sf::String,VisibleGameObject*>::const_iterator itr;
for(itr = gameObjects.begin();itr!=gameObjects.end();itr++){
itr->second->draw(wnd);
itr++;
}
}
I think this is something is not copyable, but I can’t see what it is here.
RenderWindow inherits from
sfNonCopyable.VisibleGamObject.draw()is probably attempting to copywnd.