C++ iostreams: Unexpected but legal multithreaded behaviour | Dark Hacker News