diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 19:48:50 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 19:48:50 +0100 |
commit | 3c0d819176620f118b04931e8444e03f62577faf (patch) | |
tree | fe1458232d8e33bcd8a09c22ce609a34f83ed252 /src/function.h | |
parent | 51f4788b2b51a21894ae49821abc67c2fab4a68a (diff) |
added copy and move constructors to some classes
Diffstat (limited to 'src/function.h')
-rw-r--r-- | src/function.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/function.h b/src/function.h index 40c392f..eabc2e2 100644 --- a/src/function.h +++ b/src/function.h @@ -30,6 +30,18 @@ public: Function(const char *name, native_callback_3 function, const Arguments &arguments = {}) : Callable(name, arguments), _type(3) { _function.f3 = function; } /** + * Copy constructor + * @param that + */ + Function(const Function &that) : Callable(that), _function(that._function), _type(that._type) {} + + /** + * Move constructor + * @param that + */ + Function(Function &&that) : Callable(std::move(that)), _function(that._function), _type(that._type) {} + + /** * Destructor */ virtual ~Function() {} |