This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/21286] [4.0/4.1 Regression] filebuf::xsgetn vs pipes
- From: "ncm-nospam at cantrip dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2005 15:48:59 -0000
- Subject: [Bug libstdc++/21286] [4.0/4.1 Regression] filebuf::xsgetn vs pipes
- References: <20050429155408.21286.ralfixx@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ncm-nospam at cantrip dot org 2005-04-30 15:48 -------
A note for Ralf: It is incorrect to use cin.eof() to watch for the end
of a stream. The correct flag to check is fail(). eof() is really
meant for seeing if that's why op>> failed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21286