Re: [boost] Re: [review] hash functions

9 Mar
2005
9 Mar
'05
7:32 p.m.
In-Reply-To: <422EFC7F.9D48D181@tid.es> joaquin@tid.es (=?iso-8859-1?Q?Joaqu=EDn=20M=AA=20L=F3pez=20Mu=F1oz?=) wrote (abridged):
Oh, sorry, I misread it. I agree with you hashing a bool makes little sense, and agree that it probably shouldn't be made part of the public interface (for the same reasons, for instance, that there's no overload for char.)
Is that because bools and chars will be promoted to ints? I can imagine wanting bools and chars to hash differently, to take advantage of their special properties. Then hash_value('\0') could be different to hash_value(0), which wouldn't bother me because they are different types. However I can understand if this is felt too risky for general use. -- Dave Harris, Nottingham, UK
7403
Age (days ago)
7403
Last active (days ago)
0 comments
1 participants
participants (1)
-
brangdon@cix.compulink.co.uk