|
Boost Users : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-10-06 13:10:42
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net