Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active May 11, 2017 08:08
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/05f36c7f2c11cd9fa08e6ce9d4cba950 to your computer and use it in GitHub Desktop.
Save deque-blog/05f36c7f2c11cd9fa08e6ce9d4cba950 to your computer and use it in GitHub Desktop.
template <typename ...Names, typename ...Args>
void log_named_trace(
std::ostream& out,
std::string const& prefix,
hana::tuple<Names...> const& arg_names,
Args const& ...args)
{
out << prefix << "{";
out << hana::intersperse(zip_args(arg_names, hana::make_tuple(args...)), ", ");
out << "}\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment