This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
std::istream_iterator and eofbit
- To: libstdc++ at gcc dot gnu dot org
- Subject: std::istream_iterator and eofbit
- From: Bill Somerville <bill at classdesign dot com>
- Date: Fri, 29 Jun 2001 17:46:45 +0100
- Organization: Class Design Limited
Hi
The ISO Standard and the v3.0 implementation agree that eofbit doesn't
constitute an end-of-stream condition, why is this?
If you use sid::istream_iterator to form an input range to an algorithm,
then an infinte loop ensues if eofbit gets set, are stream exceptions
supposed to be used to terminate such loops?
--
Bill Somerville