What are the uses of the new C++20 std::osyncstream (http://en.cppreference.com/w/cpp/io/basic_osyncstream)? Isn't the std::ostream already thread-safe?
What are the uses of the new C++20 std::osyncstream (http://en.cppreference.com/w/cpp/io/basic_osyncstream)? Isn't the std::ostream already thread-safe?
According to How to easily make std::cout thread-safe?
it looks like it is not thread-safe. They even (the first answer in that question) suggest to make a wrapper, which is basically what std::osyncstream offers.