X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=7f4dd7b988a3b988911797cde037ab733658e84e;hb=3dac369f47a47540ca5e0d691c9b6e5cd41e127e;hp=6cc53e7af3674ee31fbd18bbff24e3d699830294;hpb=767eef43221f871240e78035158b38b0447c20e6;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index 6cc53e7..7f4dd7b 100644 --- a/source/input.h +++ b/source/input.h @@ -23,7 +23,7 @@ public: int get(); int peek(); unsigned get_line_number() const { return line; } - explicit operator bool() const; + explicit operator bool() const { return (next>=0 || !in->eof()); } }; } // namespace DataFile