This commit is contained in:
2026-06-12 00:09:14 +03:00
parent d9acf5eea8
commit 4a9125549f
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -648,7 +648,6 @@ namespace omath
std::abs(scale_y) < epsilon ? Type{1} : scale_y, std::abs(scale_y) < epsilon ? Type{1} : scale_y,
std::abs(scale_z) < epsilon ? Type{1} : scale_z, std::abs(scale_z) < epsilon ? Type{1} : scale_z,
#endif #endif
}; };
} }
+2 -1
View File
@@ -332,8 +332,9 @@ namespace omath
template<> struct std::hash<omath::Vector3<float>> template<> struct std::hash<omath::Vector3<float>>
{ {
// NOTE: Cannot be constexpr because of MSVC
[[nodiscard("You must use hash value")]] [[nodiscard("You must use hash value")]]
constexpr std::size_t operator()(const omath::Vector3<float>& vec) const noexcept std::size_t operator()(const omath::Vector3<float>& vec) const noexcept
{ {
std::size_t hash = 0; std::size_t hash = 0;
constexpr std::hash<float> hasher; constexpr std::hash<float> hasher;