Last active
June 3, 2017 15:20
-
-
Save deque-blog/88797accc163979a5093b3001b54daa1 to your computer and use it in GitHub Desktop.
This file contains 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 ...Names, typename Fct, typename ...Args> | |
auto wrap_with_logs( | |
std::string const& fct_name, | |
hana::tuple<Names...> const& names, | |
Fct fct, Args && ...args) | |
{ | |
log_named_trace(get_logger(), log_prefix(fct_name), names, args...); | |
return fct(std::forward<Args>(args)...); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment