Skip to content
Advertisement

Tag: iostream

Resetting an ostream, C++

I have 2 different ostreams, one of them cerr, using the same streambuffer, I have some libraries in that might have modified cerr somehow,(flags? format modifiers?). prints: Debugging mystreambuffer I’ve noticed that cerr calls mystreambuffer->sync() every << operation while teststream does not call it at all. If I am correct cerr is just an standard ostream, then, why do I

Advertisement