This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: hash_map<char*,T> default EqualKey
- To: falk dot hueffner at student dot uni-tuebingen dot de (Falk Hueffner)
- Subject: Re: hash_map<char*,T> default EqualKey
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Mon, 21 May 2001 17:02:42 -0700 (PDT)
- Cc: libstdc++ at gcc dot gnu dot org
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.