fixed throw statement in Function::operator()

This commit is contained in:
Kjistóf 2016-11-27 14:28:59 +01:00
parent b2ca0431ee
commit dbee27d63b

View File

@ -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>(args)...);
}