|
Boost : |
From: Jason Hise (chaos_at_[hidden])
Date: 2005-01-09 12:12:06
Pavel Vozenilek wrote:
>struct undoer_t {
> int* value;
> undoer_t(int* val) value(val) {}
> ~undoer_t() { if (value) --*value; }
> void dismiss() { value = 0; }
>} undoer(&dependents);
>
>..... possibly throwing operation
>
>undoer.dismiss();
>
Ok, that makes sense. I'll implement that change. Thanks!
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk