Open yretenai opened 4 years ago
I'd be very surprised if this does anything - the section lib.support.start.term of the C++ specs guarantees that all streams get flushed on termination.
Have you observed this to fix a bug, or is it just a hunch?
Observed the bug, reproduced it on my system both with Powershell and cmd/conhost. Adding flush makes the program output as expected. Might be a VC++ specific bug.
Okay then, thank you. It looks like something I need to look into, then...
cerr is not flushed with endl or program exit on windows.