From dbee27d63bda1e4b3b62c58254f5a7fe7f25c52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 27 Nov 2016 14:28:59 +0100 Subject: [PATCH] fixed throw statement in Function::operator() --- Function.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Function.hpp b/Function.hpp index 3833f0f..5fc0103 100644 --- a/Function.hpp +++ b/Function.hpp @@ -57,7 +57,7 @@ public: Ret operator()(Args... args) const { if (_is_null) - throw std::bad_function_call("Error: call to nullptr Function!"); + throw std::bad_function_call(); return _fun->call(std::forward(args)...); }