mirror of
https://github.com/orange-cpp/omath.git
synced 2026-06-12 02:04:35 +00:00
patch
This commit is contained in:
@@ -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
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -332,8 +332,9 @@ namespace omath
|
||||
|
||||
template<> struct std::hash<omath::Vector3<float>>
|
||||
{
|
||||
// NOTE: Cannot be constexpr because of MSVC
|
||||
[[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;
|
||||
constexpr std::hash<float> hasher;
|
||||
|
||||
Reference in New Issue
Block a user