1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix hash implementation

This commit is contained in:
bolero-MURAKAMI 2013-02-04 23:48:18 +09:00
parent c72ab5c6c1
commit 3ddcd6cfd0
8 changed files with 25 additions and 23 deletions

View file

@ -136,7 +136,7 @@ namespace sprout {
template<typename T, std::size_t N>
inline SPROUT_CONSTEXPR std::size_t
hash_value(T const (&v)[N]) {
return sprout::hash_range(&v[0], &v[0] + N);
return sprout::hash_range(v);
}
} // namespace sprout

View file

@ -13,7 +13,7 @@ namespace sprout {
template<typename T, std::size_t N>
inline SPROUT_CONSTEXPR std::size_t
hash_value(sscrisk::cel::array<T, N> const& v) {
return sprout::hash_range(v.begin(), v.end());
return sprout::hash_range(v);
}
} // namespace sprout