Created
November 6, 2018 19:34
-
-
Save jflopezfernandez/5591d4fa1aa7f5cc3ab431c47f3cfe42 to your computer and use it in GitHub Desktop.
Function Call Wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
template <typename Callable, typename... Args> | |
decltype(auto) Call(Callable&& op, Args&&... args) | |
{ | |
//DoSomethingElseLikePossiblyLoggingOrSomething... | |
return std::forward<Callable>(op)(std::forward<Args>(args)...); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment