fixed throw statement in Function::operator()
This commit is contained in:
parent
b2ca0431ee
commit
dbee27d63b
@ -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)...);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user