Angus Leeming wrote: > Lars Gullik Bjønnes wrote: > >> Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> | + lyxerr << "InsetTabular::draw: " << x << " " << y << "\n"; >> >> Please, please do not use '\n' to end a lyxerr sequence, use >> std::endl, since that also flush the buffer. >> >> I have a patch somewhere that fixes this other places in the code. >> >> (OTOH a patch to debugstream that makes sure that it is unbuffered is >> also welcome.) > > isn't that as simple as > lyxerr.setbuf(0,0); > ? >
Actually, since DebugStream uses the same streambuf as cerr, isn't it already unbuffered? /// Constructor, sets the debug level to t. DebugStream::DebugStream(Debug::type t) : ostream(new debugbuf(cerr.rdbuf())), dt(t), nullstream(new nullbuf), internal(0) {} Confused, -- Angus