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'
|
/w14905 # wide string literal cast to 'LPSTR'
|
||||||
/w14906 # string literal cast to 'LPWSTR'
|
/w14906 # string literal cast to 'LPWSTR'
|
||||||
/w14928 # illegal copy-initialization; more than one user-defined conversion has been implicitly applied
|
/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
|
# Disables, remove when appropriate
|
||||||
/wd4996 # disable warnings about deprecated functions
|
/wd4996 # disable warnings about deprecated functions
|
||||||
|
@ -288,7 +288,7 @@ constexpr bool operator !=(const Vector2<T>& left, const Vector2<T>& right)
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
template <typename T>
|
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>
|
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