This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ 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 libstdc++@gcc.gnu.org.
>
> 22.2.4.1.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:
http://gcc.gnu.org/ml/libstdc++/2002-02/msg00088.html
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
expert...
What do you think?
Ciao, Paolo.