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

16 Mar
2005
16 Mar
'05
5:07 p.m.
In-Reply-To: <d174ak$vp3$1@sea.gmane.org> nesotto@cs.auc.dk (Thorsten Ottosen) wrote (abridged):
are you saying we don't want to hash a Base* as a void*, but use object properties instead?
Sometimes. It's a reasonable thing to do. It's what my own app actually does. It shouldn't be the default, of course. Mainly I'm saying that equality tests sometimes need to be polymorphic, and when they are the corresponding hash_value needs to be as well. So sometimes we will be comparing hash values from different types. (Other people here have claimed that never happens.) -- Dave Harris, Nottingham, UK
7415
Age (days ago)
7415
Last active (days ago)
0 comments
1 participants
participants (1)
-
brangdon@cix.compulink.co.uk