From 4b5a1cf0f21dd94c317fd7f648d1224965348a31 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 16 Sep 2022 19:48:36 +0300 Subject: [PATCH] Update complex hashing to use hash_mix --- include/boost/container_hash/hash.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/container_hash/hash.hpp b/include/boost/container_hash/hash.hpp index 72b8378..090250b 100644 --- a/include/boost/container_hash/hash.hpp +++ b/include/boost/container_hash/hash.hpp @@ -362,8 +362,7 @@ namespace boost std::size_t re = boost::hash()( v.real() ); std::size_t im = boost::hash()( v.imag() ); - im ^= re + ( im << 6 ) + ( im >> 2 ); - return im; + return re + hash_detail::hash_mix( im ); } // pair