summaryrefslogtreecommitdiff
path: root/include/class.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 19:48:50 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 19:48:50 +0100
commit3c0d819176620f118b04931e8444e03f62577faf (patch)
treefe1458232d8e33bcd8a09c22ce609a34f83ed252 /include/class.h
parent51f4788b2b51a21894ae49821abc67c2fab4a68a (diff)
added copy and move constructors to some classes
Diffstat (limited to 'include/class.h')
-rw-r--r--include/class.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/class.h b/include/class.h
index 61d5856..851de8d 100644
--- a/include/class.h
+++ b/include/class.h
@@ -42,7 +42,17 @@ public:
*/
Class(const char *name) : ClassBase(name) {}
- // @todo add copy and move constructor
+ /**
+ * Copy constructor
+ * @param that
+ */
+ Class(const Class<T> &that) : ClassBase(that) {}
+
+ /**
+ * Move constructor
+ * @param that
+ */
+ Class(Class<T> &&that) : ClassBase(std::move(that)) {}
/**
* Destructor