Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-03-13 11:22:12


Dave Harris wrote:

> hash_combine: seed ^= hash_value(v) + (seed << 6) + (seed >> 2);

I support your proposal to bias hash_value(v) in the above with a constant
in order to avoid the zero trap. 0x9e3779b9 seems popular.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk