Boost logo

Boost :

Subject: Re: [boost] [scope_exit] D-style scope(failure) and scope(success) in C++
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2013-09-30 00:55:44


On Sun, Sep 29, 2013 at 8:53 PM, Andrey Semashev
<andrey.semashev_at_[hidden]> wrote:
> On Sunday 29 September 2013 15:55:01 Emil Dotchevski wrote:
>> On Sun, Sep 29, 2013 at 2:23 PM, Evgeny Panasyuk
> Writing throwing destructors is discouraged, everyone knows that. But
> sometimes you just need it because it offers benefits compared to other
> approaches.

It also has drawbacks. :)

Perhaps "need" is an overstatement here, I'm sure there are other ways
to do this even if we insist on using the same syntax.

I didn't intend to create an argument, but I think that it is a
mistake to open this Pandora's box, so I don't want to provide support
for it in the exception library.

-- 
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode

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