This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/21193] provide better std::tr1::hash for std::string and std::wstring
- From: "schlie at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Apr 2005 14:38:21 -0000
- Subject: [Bug libstdc++/21193] provide better std::tr1::hash for std::string and std::wstring
- References: <20050424165745.21193.TazForEver@dlfp.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schlie at comcast dot net 2005-04-26 14:38 -------
(In reply to comment #6)
>> But collate<_CharT>::do_hash() already depends on sizeof(long)..
> ... which, of course, tracks size_t, on every platform I know. Or you have a
> counterexample?
Just about any 8 or 16 bit target with a 16-bits wide address, including avr, etc.
(so in general would expect sizeof(int) ~ sizeof(size_t) to be more consistently true,
or of course could be structured to rely on sizeof(size_t) directly.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21193