X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.cpp;h=f3f8f23f3343fa9352a618c82f8c151f2811573e;hb=e26f7e98e5d8a5666192a43348b3ca7a35f6b860;hp=e03a92126944703234a8d6fa330c4eba66cacb5e;hpb=6dd94a7fe90c6467024685fbac769067ddb74688;p=libs%2Fdatafile.git diff --git a/source/input.cpp b/source/input.cpp index e03a921..f3f8f23 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -34,5 +34,10 @@ int Input::peek() return next; } +Input::operator bool() const +{ + return next>=0 || !in.eof(); +} + } // namespace DataFile } // namespace Msp