Topic: istream io-state and string
Author: Janis Papanagnou <Janis.Papanagnou@pc-plus.de>
Date: 1999/02/23 Raw View
Reading a simple STL string, which is not terminated by a '\n', from
an istream using operator>> results in an eof() io-state with our STL
library.
Is this standard behaviour ?
I read in a couple of books about the io-state, that it should only
set the eof flag, iff nothing had been read from the istream, which
is not the case in the example.
BTW, there seems to be the same effect with a simple 'char *' type.
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]