Skip to content

Instantly share code, notes, and snippets.

@jflopezfernandez
Created November 6, 2018 19:34
Show Gist options
  • Save jflopezfernandez/5591d4fa1aa7f5cc3ab431c47f3cfe42 to your computer and use it in GitHub Desktop.
Save jflopezfernandez/5591d4fa1aa7f5cc3ab431c47f3cfe42 to your computer and use it in GitHub Desktop.
Function Call Wrapper
//
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