]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/argumentstore.h
Move the definition of Input's operator bool to the header
[libs/datafile.git] / source / argumentstore.h
index c2d5d76f3dbb473c613840c7f92dd9320fa07d5b..e7a3c5594e3a60f075d7e12eee85368d70eb802b 100644 (file)
@@ -10,12 +10,18 @@ class ArgumentStore
 {
 private:
        const StatementInfo &info;
-       char *store;
+       char *store = nullptr;
 
 public:
        ArgumentStore(const StatementInfo &);
+       ArgumentStore(const ArgumentStore &);
+       ArgumentStore &operator=(const ArgumentStore &);
        ~ArgumentStore();
+private:
+       void destroy();
+       void copy_from(const char *);
 
+public:
        const StatementInfo &get_info() const { return info; }
 
        template<typename T>