24 Mar
2006
24 Mar
'06
4:30 p.m.
Denis G. Priyomov wrote:
Wouldn't it be nice to extend shared_ptr to support transaction-like semantics? Or is it possible already? Sometimes it's needed to execute code on exit only until we haven't reached some point (of "no return"):
This really is an abuse of shared_ptr. Search this list and the developer list for "scope guard", there was some interesting discussion a few weeks ago. Sebastian Redl