Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-09-22 15:01:33


Rob Stewart wrote:

> scope_guard g(my_undo_function);
> ...
> g.dismiss(); // or whatever name is selected
> ...
> g.protect(); // or whatever name is selected
> ...

Can someone please provide a motivating example for .protect? scope_guard vs
scoped_guard aside for a moment. :-)


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