[wxInputStream] unlogic Eof() behavior
ABX
abx at abx.art.pl
Wed Jan 31 11:58:33 PST 2007
Christian Buhtz <yspam at ...> writes:
> As described in the docs of wxInputStream Eof() return 'true' after
> reading behind(!) the last byte. So If I read the last existing byte
> Eof() does NOT return true. I have to read one non-existing byte more
> and produce an error with it, to get Eof() == true.
>
> I think it is quite unlogic and inconsitens behavior.
Inconsistent with what?
http://www.cplusplus.com/reference/iostream/ios/eof.html
"The function returns true if the eofbit stream's error flag has been set by a
previous i/o operation"
ABX
More information about the wx-dev
mailing list