mirror of
https://github.com/boostorg/container_hash.git
synced 2025-08-04 06:54:38 +02:00
Update complex hashing to use hash_mix
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user