Driema/euler-fluid-cpp

Sim.cpp Compiler Error C2280

lawrencematthew19942016 opened this issue · 1 comments

Seem to be getting an odd error on line 6 of Sim.cpp

Sim::Sim() : options(Options()), container(Container(0.2f, 0, 0.0000001f)), win(sf::RenderWindow(sf::VideoMode(SIZE* SCALE, SIZE* SCALE), "Euler fluid simulation - Github: https://github.com/driema/euler-fluid-cpp", sf::Style::Titlebar | sf::Style::Close)) {}

Severity Code Description Project File Line Suppression State
Error C2280 'sf::RenderWindow::RenderWindow(const sf::RenderWindow &)': attempting to reference a deleted function Euler C:\VSProjects\Euler\sim.cpp 6

Any solutions?

Hey there, that is definitely my bad. I should have used the according create function. Just get the new master version and you should be good to go.