Last active
May 10, 2017 16:25
-
-
Save deque-blog/b7af400a836bd0c6b0d2a16c4c43e04f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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