Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
template <typename Fct, typename ...Args>
auto wrap_with_logs(std::string const& fct_name,
Fct fct, Args && ...args)
{
log_trace(get_logger(), log_prefix(fct_name), 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