I fail to build my VS solution with compile error C2589 in Rect.inl.
Someone please guide me how to fix.
The only two error messages when I try to build are follows :
C:\SFML\SFML-2.5.1\include\SFML\Graphics\Rect.inl(81,19): error C2589: '(': illegal token on right side of '::'.
C:\SFML\SFML-2.5.1\include\SFML\Graphics\Rect.inl(114,21): error C2589: '(': illegal token on right side of '::'
I use Visual Vtudio 2019 Community Edition and SFML 2.5.1 static ver.
I have set up following this tutorial
https://www.sfml-dev.org/tutorials/2.5/start-vc.php and successfully compiled and ran the test code.
I include <SFML/Graphics.hpp>, declare using namespace sf; and use classes RenderWindow, VideoMode, Texture, Sprite, IntRect, Clock, Event, and Keyboard (I might overlook though).