This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]