diff --git a/Function.hpp b/Function.hpp index 5232290..46f9183 100644 --- a/Function.hpp +++ b/Function.hpp @@ -34,5 +34,8 @@ public: return *this; } + Ret operator()(Args... args) const + { return _fun->call(std::forward(args)...); } + ~Function() { delete _fun; } }; \ No newline at end of file