I have a class derived from ostream and I'd to intercept control either before or after each output operation is performed. I've tried nesting my own sentry class within my derived class, but it doesn't get control. The sentry constructor in ostream always gets control.
Is there another approach to intercepting arbitrary output operations I'm missing?