
24 Mar
2006
24 Mar
'06
2:46 p.m.
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"):
{
shared_ptr<void> cr_guard(static_cast