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

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Tue Apr 26 14:52:00 GMT 2005


------- Additional Comments From pcarlini at suse dot de  2005-04-26 14:52 -------
> 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.)

As you imply in the last line, this is really a side-issue (in collate we have
to return a long and there is nothing wrong with probing sizeof(long)). By the
way, I would be curious to know whether the targets that you are mentioning do
actually run well libstdc++-v3 in general (often my practical point of view is
tied to that ;)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21193



More information about the Gcc-bugs mailing list