From d5b38b01fc5113b1090e3efd0f8307bc19b1df66 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 15 Jul 2008 21:26:54 +0000 Subject: [PATCH] Better hash function for unordered containers. Still a bit rubbish. [SVN r47463] --- include/boost/unordered/detail/hash_table_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/hash_table_impl.hpp b/include/boost/unordered/detail/hash_table_impl.hpp index fc8443ee..d4870067 100644 --- a/include/boost/unordered/detail/hash_table_impl.hpp +++ b/include/boost/unordered/detail/hash_table_impl.hpp @@ -2294,7 +2294,7 @@ namespace boost { j = t.data_.buckets_end(); i != j; ++i) { for(link_ptr it(i->next_); BOOST_UNORDERED_BORLAND_BOOL(it); it = data::next_group(it)) - seed ^= group_hash(t, it, (type_wrapper*)0); + seed += group_hash(t, it, (type_wrapper*)0); } return seed;