[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug libstdc++/15995] istringbuf/operator



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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: