X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fparser.h;h=c15fee8eb6ade6445d2f485ae5b86fe7a23f199d;hb=9d0291952255969770e4978a0fe9e7e4839359c8;hp=d1879604b5fd8f566dd21829fbe042e7fcee3381;hpb=e1b8089be727f651fc2022d6e7ff775047730e85;p=libs%2Fdatafile.git diff --git a/source/parser.h b/source/parser.h index d187960..c15fee8 100644 --- a/source/parser.h +++ b/source/parser.h @@ -11,7 +11,7 @@ namespace DataFile { class Loader; class LoaderAction; class ParserMode; -class Statement; +struct Statement; struct StatementKey; /** @@ -51,7 +51,7 @@ public: statement's signature. */ bool parse_and_load(unsigned, Loader &, const LoaderAction &); - operator bool() const { return good && in; } + explicit operator bool() const { return good && in; } }; } // namespace DataFile