6 Oct
2005
6 Oct
'05
6:10 p.m.
Alan M. Carroll wrote:
At 06:37 AM 10/5/2005, you wrote:
Paul Giaccone wrote:
How do you close a filtering_ostream object once you have finished writing to it?
Since you've noted that the destructor has the behavior you want, why not put the filtering_ostream in a scoped_ptr and .reset(0) the pointer when you're done with it?
This is not necessary: pop() and reset() both flush and close the current device and then destroy it. -- Jonathan Turkanis www.kangaroologic.com