This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
re: Funniness with operator>> (istream&, string&)
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: re: Funniness with operator>> (istream&, string&)
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Mon, 24 Jan 2000 23:36:15 -0800
OK. I was wrong. The looping part is a known issue. The setting of
failbit for operator>> is not.
See:
91. Description of operator>> and getline() for string<> might cause
endless loop
Sorry if I confused you with my tirade about istream::sentry and failbit.
I really really really wish the standard was consistent WRT failbit.
-Benjamin