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


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

Re: hash_map<char*,T> default EqualKey



Marco Morandini <morandini@aero.polimi.it> writes:

> No. It should behave like map: If I tell it to store void*, it should
> store void*. If I tell it to store char*, it should store char*.

Agreed: the builtin hash<char*> is a design mistake, because any effort to
replace stl::map with stl::hash_map has this odd special case.  I'm sure
that when an attempt is made to add hash_{map,set,multimap,multiset} to
the next version of the C++ standard is made, that's the first thing the
committee will insist on.


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