From 49ad128493078a3cbc9e31a62af13bd85f232c57 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 13 Dec 2013 23:30:16 -0500 Subject: [PATCH] If you want to have return types, use `.call` instead of `operator()`. --- sol/function.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sol/function.hpp b/sol/function.hpp index f532962e..6a68d728 100644 --- a/sol/function.hpp +++ b/sol/function.hpp @@ -65,11 +65,6 @@ public: void operator()(Args&&... args) { call<>(std::forward(args)...); } - - template - auto operator()(types, Args&&... args) { - return call(std::forward(args)...); - } template auto call(Args&&... args) -> decltype(invoke(types(), sizeof...(Args))) {