]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/token.h
Move the definition of Input's operator bool to the header
[libs/datafile.git] / source / token.h
index 28cca97e882f83e76f4d5a6035e15d6465ac8b99..cbf5882f605fd17b3c88913402c683b7c3e504ae 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef MSP_DATAFILE_TOKEN_H_
 #define MSP_DATAFILE_TOKEN_H_
 
+#include <string>
+
 namespace Msp {
 namespace DataFile {
 
@@ -15,10 +17,10 @@ struct Token
                SPECIAL
        };
 
-       Type type;
+       Type type = SPECIAL;
        std::string str;
 
-       Token(): type(SPECIAL) { }
+       Token() = default;
        Token(Type t, const std::string &s): type(t), str(s) { }
 };