There is no standardized way to extract or observe the error state from a std::osyncstream
, because it's designed in such a way so that it buffers output for synchronized, thread-safe writes, while not exposing the underlying stream's state in the same way that a raw std::ostream
does.