]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/parser.h
Make boolean conversion operators explicit
[libs/datafile.git] / source / parser.h
index d1879604b5fd8f566dd21829fbe042e7fcee3381..c15fee8eb6ade6445d2f485ae5b86fe7a23f199d 100644 (file)
@@ -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