Instead of using tie(), set the ios_base::unitbuf flag to force the stream to be flushed after every insertion.
1 file changed
tree: d96f5892b8a49249a5b86fcef1e14625ca064f3f
  1. asio/