This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/21193] provide better std::tr1::hash for std::string and std::wstring


------- 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


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