Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active May 10, 2017 16:25
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/b7af400a836bd0c6b0d2a16c4c43e04f to your computer and use it in GitHub Desktop.
Save deque-blog/b7af400a836bd0c6b0d2a16c4c43e04f to your computer and use it in GitHub Desktop.
template <typename ...Args>
void log_trace(std::ostream& out, std::string const& prefix, Args const& ...args)
{
out << prefix << "(";
(out << ... << args); //Problem: all logs are mushed together!
out << ")\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment