hash_map<> and string...
Benjamin Kosnik
bkoz@redhat.com
Tue Nov 21 13:43:00 GMT 2000
> | I suspect this will get you where you want to go. If not, you're
> | pretty much out of luck, as only fundamental types are going in this
> | file, apparently.
>
> Well, any reasonable hash table library should come with a hash
> function for fundmantal types or nearby types (i.e. pointer types).
> It is also understandable to require the library to come with hash
> functions defined for any type it happens to define or use, for
> completeness purpose.
I see we disagree about what is "reasonable." I think this is OK though.
> It is not really hard to add support for hash<std::string> but that has
> a low priority on my TODO list. And if we start providing support
> for std::string, there is no reason we should stop there...
Right. It's this bit that concerns me. Let's not go down this path...
-benjamin
More information about the Libstdc++
mailing list