Closed ScottHuangZL closed 7 years ago
VS2017:
RenderWindow window{ { windowWidth, windowHeight }, "Arkanoid - 9" }; need change to: RenderWindow window{ { (unsigned int)windowWidth, (unsigned int)windowHeight }, "Arkanoid - 9" };
Due to the const int cannot need convert to unsigned int under VS2017 or VS2015 enviroment.
This is a MSVC bug. Context & information: http://stackoverflow.com/questions/43076106
I'll report it if it's not already on the tracker.
VS2017:
RenderWindow window{ { windowWidth, windowHeight }, "Arkanoid - 9" }; need change to: RenderWindow window{ { (unsigned int)windowWidth, (unsigned int)windowHeight }, "Arkanoid - 9" };
Due to the const int cannot need convert to unsigned int under VS2017 or VS2015 enviroment.