if I create a class object like this
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML Window");
it works fine, but if I create it like this
sf::RenderWindow window = sf::RenderWindow(sf::VideoMode(200, 200), "SFML Window");
I get an error
attempting to reference a deleted function.
Don't they mean the same thing? Why does one work and the other does not?