This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Strange stream behaviour
>>>>> "Nathan" == Nathan Myers <ncm@nospam.cantrip.org> writes:
> There is no reason to expect the program to work. In particular, the
> function cin.get() can never return EOF under any circumstances. EOF
> is an int constant, where cin.get() can only return character values.
Gosh, that seems like a big ol' trap for new users. Is EOF checking a
casualty of templatization?
Jason