Boost logo

Boost :

Subject: Re: [boost] [scope_exit] D-style scope(failure) and scope(success) in C++
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-09-30 01:03:38


On Sunday 29 September 2013 21:55:44 Emil Dotchevski wrote:
> 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.

Ok.

In that case, how about making unhandled_exception_count() a member of
boost/detail, so that multiple libraries can use it?


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