diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index 7a0dece..fce2acb 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -648,7 +648,6 @@ namespace omath std::abs(scale_y) < epsilon ? Type{1} : scale_y, std::abs(scale_z) < epsilon ? Type{1} : scale_z, #endif - }; } diff --git a/include/omath/linear_algebra/vector3.hpp b/include/omath/linear_algebra/vector3.hpp index 405c8f3..c36deb1 100644 --- a/include/omath/linear_algebra/vector3.hpp +++ b/include/omath/linear_algebra/vector3.hpp @@ -332,8 +332,9 @@ namespace omath template<> struct std::hash> { + // NOTE: Cannot be constexpr because of MSVC [[nodiscard("You must use hash value")]] - constexpr std::size_t operator()(const omath::Vector3& vec) const noexcept + std::size_t operator()(const omath::Vector3& vec) const noexcept { std::size_t hash = 0; constexpr std::hash hasher;