std::collate hash() still broken

Paolo Carlini pcarlini@unitus.it
Sun Feb 10 13:06:00 GMT 2002


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.



More information about the Gcc mailing list