This is the mail archive of the
mailing list for the GCC project.
Re: std::collate hash() still broken
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Sun, 10 Feb 2002 22:01:38 +0100
- Subject: Re: std::collate hash() still broken
- References: <200202102056.g1AKui629449@fillmore.constant.com>
Benjamin Kosnik wrote:
> Where's the beginning of this thread? I can't find it. I'd suggest
> sending C++ library questions to firstname.lastname@example.org.
> 184.108.40.206.2 - collate virtual functions
> long do_hash(const charT* low, const charT* high) const;
> -3- Returns: An integer value equal to the result of calling hash() on
> any other string for which do_compare() returns 0 (equal) when passed
> the two strings.
Hi Benjamin, thanks for your feedback.
The beginning is here:
Personally, I believe Aaron is right in that the current hash function
implemented in do_hash is a little bit unusual. However, I'm not an hashing
What do you think?