Just reading an old but interesting article by "Scott Meyers"
http://aristeia.com/Papers/C++ReportColumns/novdec95.pdf
Basically it is about preferring to use '
'
over std::endl
(which I agree with and have used the same augment for years).
BUT the last section indicates this was not included in his book because the whole thing was rendered moot because of two points:
std::cout
was not buffered.- The state of
ios::unitbuf
on std::cout is not explicitly defined (thus implementation dependent).
I did a quick look but could not find an explicit standards reference for 1
was true. Is std::cout
unbuffered contrary to what I have always understood?