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_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
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user