coord/ops: std::hash should return a size_t
This commit is contained in:
parent
347b13ee60
commit
dccc4fbbf7
@ -1514,12 +1514,12 @@ namespace std {
|
|||||||
struct hash<K<S,T>> : enable_if<
|
struct hash<K<S,T>> : enable_if<
|
||||||
::cruft::is_coord_v<K<S,T>>
|
::cruft::is_coord_v<K<S,T>>
|
||||||
> {
|
> {
|
||||||
uint32_t operator() (K<S,T> k) const {
|
constexpr std::size_t
|
||||||
uint32_t v = 0xdeadbeef;
|
operator() (K<S,T> k) const noexcept
|
||||||
|
{
|
||||||
for (T t: k)
|
std::size_t v = 0xdeadbeef;
|
||||||
|
for (T const &t: k)
|
||||||
v = ::cruft::hash::mix (t, v);
|
v = ::cruft::hash::mix (t, v);
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user