$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-06-23 11:58:20
"Nat Goodspeed" <ngoodspeed_at_[hidden]> wrote
> > From: Erik Thiele [mailto:erik_at_[hidden]]
> >
> > now i can do:
> >
> > void foo()
> > {
> > protassign<bool> foorunning_assigner(foorunning, true);
> > dojobs();
> > dofoooo();
> > }
> >
> > and that's all. is there one such thing in boost already???
>
> [Nat] In the forthcoming Boost serialization library:
>
> http://www.rrsd.com/boost/
>
> there's a state_saver template class that does what you're talking
> about:
>
> http://www.rrsd.com/boost/libs/serialization/doc/state_saver.html
>
> This seems useful enough to promote to a library more general than the
> serialization library.
>
Yes. Anyone willing to make it into standalone library is definitely
welcomed.
/Pavel