This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: hash_map<> and string...
- To: libstdc++ at sources dot redhat dot com
- Subject: Re: hash_map<> and string...
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Tue, 21 Nov 2000 13:43:27 -0800 (PST)
> | 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