1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

fix quaternion hash_value function

This commit is contained in:
bolero-MURAKAMI 2016-02-27 13:01:43 +09:00
parent 2d9b3b4b99
commit 1fabe7da1c

View file

@ -15,14 +15,16 @@
#include <sprout/functional/hash.hpp>
namespace sprout {
//
// hash_value
//
template<typename T>
inline SPROUT_CONSTEXPR std::size_t
hash_value(sprout::math::quaternion<T> const& v) {
return sprout::hash_values(v[0], v[1], v[2], v[3]);
}
namespace math {
//
// hash_value
//
template<typename T>
inline SPROUT_CONSTEXPR std::size_t
hash_value(sprout::math::quaternion<T> const& v) {
return sprout::hash_values(v[0], v[1], v[2], v[3]);
}
} // namespace math
} // namespace sprout
namespace std {