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++/14773] incorrect behavior of istringstream in gcc 3.2.3


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


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