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
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public:
Ret operator()(Args... args) const Ret operator()(Args... args) const
{ {
if (_is_null) 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)...); return _fun->call(std::forward<Args>(args)...);
} }