
1 Mar
2005
1 Mar
'05
4:49 a.m.
Jonathan Turkanis wrote:
The only way to merge the line-conversion with the debug_out_sink using existing library components (rather than by hand) is to use the detail class chain, like so:
Sorry I have to correct myself again: it's not true that the only way is to use detail::chain; one could use filtering_stream or filtering_streambuf, which are wrappers for chain. However, these classes are a little more heavyweight than necessary for this purpose. Jonathan