X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftoken.h;h=cbf5882f605fd17b3c88913402c683b7c3e504ae;hb=e14c01b5775dd2e324b16ff49498db9b9113c523;hp=28cca97e882f83e76f4d5a6035e15d6465ac8b99;hpb=7df5e45c7f414f6a07681dc4ec2abb63b091a309;p=libs%2Fdatafile.git diff --git a/source/token.h b/source/token.h index 28cca97..cbf5882 100644 --- a/source/token.h +++ b/source/token.h @@ -1,6 +1,8 @@ #ifndef MSP_DATAFILE_TOKEN_H_ #define MSP_DATAFILE_TOKEN_H_ +#include + 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) { } };