Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix weird behaviour of g++ 4.7.3-1ubuntu10 and implement sf::Rect<T>::contains(const Rect<T>&) #458
I installed g++ 4.8.1-9ubuntu1. Minimal code:
Error is somewhat fancier in 4.8:
I can reproduce this error with the test case provided by krofna.
GCC 4.8.1, SFML 2.1, Arch Linux
Can also reproduce with MinGW32 cross compiler (4.7.2).
According to this Stack Overflow answer: http://stackoverflow.com/a/7538579
http://en.cppreference.com/w/cpp/language/implicit_cast also talks about this.