Better hash function for unordered containers. Still a bit rubbish.

[SVN r47463]
This commit is contained in:
Daniel James
2008-07-15 21:26:54 +00:00
parent c49dbd782d
commit d5b38b01fc

View File

@ -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<V>*)0);
seed += group_hash(t, it, (type_wrapper<V>*)0);
}
return seed;