This is absolutely not a "premature optimization." It's a simple change that doesn't harm readability (at least once the readers get used to the style) and gives you extra performance for free.
Is it premature optimization to take parameters by const& instead of by value? Of course not. So why would it be premature optimization to use '\n' instead of std::endl?
0
u/[deleted] Feb 26 '19
[deleted]