mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Enable MSVC standards conformance
This commit is contained in:
parent
9010e7ba38
commit
4b93727413
@ -27,7 +27,7 @@ function(set_file_warnings)
|
||||
/w14905 # wide string literal cast to 'LPSTR'
|
||||
/w14906 # string literal cast to 'LPWSTR'
|
||||
/w14928 # illegal copy-initialization; more than one user-defined conversion has been implicitly applied
|
||||
# /permissive- # standards conformance mode for MSVC compiler. Disabled until all out-of-the-box Windows SDKs can successfully build with it.
|
||||
/permissive- # standards conformance mode
|
||||
|
||||
# Disables, remove when appropriate
|
||||
/wd4996 # disable warnings about deprecated functions
|
||||
|
@ -288,7 +288,7 @@ constexpr bool operator !=(const Vector2<T>& left, const Vector2<T>& right)
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
template <typename T>
|
||||
constexpr Vector2<T> Vector2<T>::UnitX(static_cast<T>(1), static_cast<T>(0));
|
||||
const Vector2<T> Vector2<T>::UnitX(static_cast<T>(1), static_cast<T>(0));
|
||||
|
||||
template <typename T>
|
||||
constexpr Vector2<T> Vector2<T>::UnitY(static_cast<T>(0), static_cast<T>(1));
|
||||
const Vector2<T> Vector2<T>::UnitY(static_cast<T>(0), static_cast<T>(1));
|
||||
|
Loading…
Reference in New Issue
Block a user