Boost logo

Boost Users :

Subject: Re: [Boost-users] [hash] hash returning fixed width integer instead of size_t?
From: Daniel James (dnljms_at_[hidden])
Date: 2011-05-20 09:28:42


2011/5/20 Frédéric Bron <frederic.bron_at_[hidden]>:
>
> But I get 1244709680 when size_t is 32 bits and 706246339511088 when
> size_t is 64 bits.
> Is it possible to have hash work with fixed width uint32_t instead of size_t?

No sorry it isn't. If you're just hashing strings, you might want to
try the 32 bit version of murmurhash3:

http://code.google.com/p/smhasher/wiki/MurmurHash3


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net