vittorioromeo / Tutorials

Repository for my YouTube tutorials + code snippets
https://www.youtube.com/channel/UC1XihgHdkNOQd5IBHnIZWbA
Other
231 stars 54 forks source link

RenderWindow window{ { (unsigned int)windowWidth, (unsigned int)windowHeight }, "Arkanoid - 9" }; #6

Closed ScottHuangZL closed 7 years ago

ScottHuangZL commented 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.

vittorioromeo commented 7 years ago

This is a MSVC bug. Context & information: http://stackoverflow.com/questions/43076106

I'll report it if it's not already on the tracker.