Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
template <typename ...Args>
void log_trace(std::ostream& out,
std::string const& prefix,
Args const& ...args)
out << prefix << "(";
hana::intersperse(hana::make_tuple(args...), ", "),
[&out](auto const& arg) { out << arg; });
out << ")\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment