[Bug libstdc++/15995] istringbuf/operator
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Tue Jun 15 09:56:00 GMT 2004
------- Additional Comments From pcarlini at suse dot de 2004-06-15 09:56 -------
Not a bug. At the end of the first call of operator>> the eofbit is set in s.
Then, at the beginning of the second operator>> the sentry finds eofbit set and
the whole input operation fails: i remains == 0. Just add s.clear(); in the
middle to get what you want.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15995
More information about the Gcc-bugs
mailing list