Did somebody change the automatic stdout.flush behavior?

Ali Çehreli acehreli at yahoo.com
Thu Feb 17 08:08:48 UTC 2022


On 2/17/22 00:02, Timon Gehr wrote:
 > On 17.02.22 01:36, Ali Çehreli wrote:
 >> Was that a special thing about C++'s cout and cin?
 >> Help! Losing my mind...
 > Afaik it's a more general feature of streams and for cin/cout, the
 > following works:
 >
 > std::cin.tie(nullptr);    // untie cin and cout
 > std::cin.tie(&std::cout); // tie cin and cout (the default)

That's the one! I misremembered "tie" as "link".

Ali



More information about the Digitalmars-d mailing list