"Jeff Garland" <jeff@[...].com> writes:
| I would also like to see this formalized into boost. Previously I have
| written an null stream class to simplify the writing of tracing code by just
| putting trace statements in the code. During debugging you pop in a regular
| stream and get output. When you are done you put in the null stream and like
| magic all the output disappears. If you have a logging policy on components
| then you can switch in null stream when you want to suppress tracing.
On that tangent would a class like this be interesting? We have used
this with some success during the years in LyX. Not for tracing
though.