Add method to call void function

This commit is contained in:
Daniel S. 2019-11-20 20:49:22 +01:00
parent 1ac0a9955b
commit 5e65eecf8b

View file

@ -119,6 +119,15 @@ public:
return this->orig; return this->orig;
} }
template <typename F, typename... Args>
void func_void(Args... args)
{
disable();
reinterpret_cast<F>(this->orig)(args...);
enable();
return;
}
template <typename F, typename... Args> template <typename F, typename... Args>
decltype(auto) func(Args... args) decltype(auto) func(Args... args)
{ {