Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active May 25, 2017 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/2e423f9434336d37135d71f4f75061d0 to your computer and use it in GitHub Desktop.
Save deque-blog/2e423f9434336d37135d71f4f75061d0 to your computer and use it in GitHub Desktop.
//Alternative WITHOUT the argument names
std::string repeat_n_with_logs(int n, std::string const& s)
{
log_trace(get_logger(), log_prefix("repeat_n"), n, s);
return repeat_n_(n, s);
}
//Alternative WITH the argument names
std::string repeat_n_with_logs(int n, std::string const& s)
{
log_named_trace(get_logger(), log_prefix("repeat_n"),
hana::make_tuple("n", "s"), n, s);
return repeat_n_(n, s);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment