[Bug libstdc++/14306] comparison of postype and size_t breaks ACE
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Thu Feb 26 10:52:00 GMT 2004
------- Additional Comments From pcarlini at suse dot de 2004-02-26 10:52 -------
Hi.
The ACE people should be informed that they are using not portable constructs:
27.4.3.2 presents the requirement for fpos (streampos, that is) and definitely
is not supposed to be convertible to size_t or any integer type. In general the
correct approach is converting it to a streamoff, like
if (streamoff(pos) > max_size) return 42;
Paolo.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14306
More information about the Gcc-bugs
mailing list