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