From 1a7c77c9175c4e9ed5c554b1986d4f2bf8b18197 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 21 Dec 2014 21:09:16 +0100 Subject: added Function as new variant type --- src/core/common/Function.hpp | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'src/core/common/Function.hpp') diff --git a/src/core/common/Function.hpp b/src/core/common/Function.hpp index e0d87dd..8113c9d 100644 --- a/src/core/common/Function.hpp +++ b/src/core/common/Function.hpp @@ -30,9 +30,6 @@ #include -#include - -#include "Rtti.hpp" #include "Variant.hpp" namespace ousia { @@ -43,11 +40,12 @@ namespace ousia { * which an array of Variant is supplied to the function and a Variant is * returned to the caller. */ -class Function : public Managed { -protected: - using Managed::Managed; - +class Function { public: + Function(const Function&) = delete; + Function(Function&&) = delete; + virtual ~Function() {}; + /** * Abstract function which is meant to call the underlying function (be it * a host or a script function) with the given arguments. @@ -87,8 +85,6 @@ private: const Callback method; public: - using Function::Function; - /** * Constructor of the Method class. * @@ -117,10 +113,6 @@ public: } }; -namespace RttiTypes { - extern const Rtti Function; -} - } #endif /* _OUSIA_FUNCTION_HPP_ */ -- cgit v1.2.3