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: when have to set the eof flag?



>From Josuttis, p. 598:

    After reading the last character, the flag eofbit is not yet set.
    The next attempt to read a character sets eofbit and failbit,
    because the read fails.


Brad Garcia



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