[Bug libstdc++/14773] incorrect behavior of istringstream in gcc 3.2.3

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Mar 29 18:38:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-29 18:38 -------
You forgot to check for errors.
If I do as such:
            s >> token;
            if (!s)
              cout << "Error"<<endl;
I get Error when you expect that the token is an empty string.
So this is invalid.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list