From 7dc40f92f2702708c187e64d8befd207cba13018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 27 Nov 2016 14:08:01 +0100 Subject: [PATCH] added implementation for operator() --- Function.hpp | 3 +++ 1 file changed, 3 insertions(+) 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