Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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