Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2004-05-14 11:24:00


Max Khesin

> I recall there have been sevral attempts at a boostified version of
> Andrei A. ScopeGuard. I want to start using this functionality and was
> wondering
> a) if there is any consensus about best/most boost-consistent
> implementation
> b) if there is there is a version in the library approval pipeline
> (or some definite plans for including this functionality in boost)
> thanks.

Take a look at the serialization library (www.rrsd.com/boost/) which
contains state_saver.hpp and a manual page. I did this because I needed it
and was inspired by Daryl Walkers I/O state saver. Pavel V. made many
improvements and to my mind effectively "boostified" it. Only did I much
later become aware of the ScopeGard in the files section. I would much like
to see this promoted out of the serialization library. Perhaps, even the
original i/o state_savers might be slightly refactored to use the general
state_saver.

Robert Ramey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk