Enable MSVC standards conformance

This commit is contained in:
Chris Thrasher 2022-04-13 10:32:24 -06:00 committed by Lukas Dürrenberger
parent 9010e7ba38
commit 4b93727413
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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));