This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: std::collate hash() still broken


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]