30 Jun
2009
30 Jun
'09
7:37 a.m.
David Larsson wrote:
Is it possible to write an iostream filter that forces a flush on newlines or is this something I need to handle before feeding data into my stream?
Hi, such a filter should work. I did not actually test it, but I inserted a boost::iostream::flush(sink); to one of my output filters and it compiles. Code is attached. Regards, Roland PS: The whole class is not very well tested, since we always use its input filter equivalent, but it should give you a start...