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

View File

@ -119,6 +119,15 @@ public:
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>
decltype(auto) func(Args... args)
{