This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/14773] incorrect behavior of istringstream in gcc 3.2.3
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2004 18:38:04 -0000
- Subject: [Bug libstdc++/14773] incorrect behavior of istringstream in gcc 3.2.3
- References: <20040329171913.14773.saunak.chakrabarti@gs.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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