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


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