
On 1/24/05 2:54 PM, "Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote:
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 first place? -- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT hotmail DOT com