From: Daryle Walker (darylew_at_[hidden])
Date: 2005-02-01 01:06:29
On 1/24/05 2:54 PM, "Gennadiy Rozental" <gennadiy.rozental_at_[hidden]>
>>> Is there a way to use io state savers in single save/multiple restore mode?
>> I don't know what you mean by "single-save / multiple-restore" mode.
> I want to save state once at the beggining of something and restore it
> multiple times after some steps that may pollute io state.
Nope, the classes are pure-RAII. The classes either save or do an "atomic"
save-and-change in the constructor and restore in the destructor. There are
no member functions you could even use for arbitrarily-timed restoring. If
you could abuse the RAII paradigm to do this, then....
BTW, why would you need to do this unusual kind of multiple restoring in the
-- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk