Update complex hashing to use hash_mix

This commit is contained in:
Peter Dimov
2022-09-16 19:48:36 +03:00
parent 435ff87fd7
commit 4b5a1cf0f2

View File

@@ -362,8 +362,7 @@ namespace boost
std::size_t re = boost::hash<T>()( v.real() );
std::size_t im = boost::hash<T>()( v.imag() );
im ^= re + ( im << 6 ) + ( im >> 2 );
return im;
return re + hash_detail::hash_mix( im );
}
// pair