]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/statement.h
Move the definition of Input's operator bool to the header
[libs/datafile.git] / source / statement.h
index f20bf119d0fa07e1886e88e7e1b45b6b3841ac85..6a9da0462d8fda6cecbe3d9a2c4bc775c481574f 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_DATAFILE_STATEMENT_H_
 
 #include <list>
+#include "mspdatafile_api.h"
 #include "value.h"
 
 namespace Msp {
@@ -9,7 +10,7 @@ namespace DataFile {
 
 struct Token;
 
-struct Statement
+struct MSPDATAFILE_API Statement
 {
        typedef std::vector<Value> Arguments;
 
@@ -55,8 +56,8 @@ struct StatementKey
 struct StatementInfo
 {
        StatementKey key;
-       unsigned args_size = 0;
-       std::vector<unsigned> arg_offsets;
+       std::size_t args_size = 0;
+       std::vector<std::size_t> arg_offsets;
 
        StatementInfo() = default;
        StatementInfo(const std::string &, const std::string &);