Boost logo

Boost :

Subject: Re: [boost] [scope_exit] D-style scope(failure) and scope(success) in C++
From: Evgeny Panasyuk (evgeny.panasyuk_at_[hidden])
Date: 2013-09-26 19:20:19


27.09.2013 3:08, Emil Dotchevski:

> Perhaps I'm missing something, but if it is a facility that aids the
> scope_exit library, it should be part of the scope_exit library. Do
> you feel that it should be part of Boost Exception?

There are two parts:
1. function uncaught_exception_count
2. scope(failure) and scope(success) which are built on top of
uncaught_exception_count

I have in mind two approaches:
a) Add both into Boost.ScopeExit
or
b) As a first step add uncaught_exception_count into Boost.Exception -
as it is closely related to it's theme. And then
scope(failure)/scope(success) will go into Boost.ScopeExit.

At that message -
http://boost.2283326.n4.nabble.com/exception-uncaught-exception-count-scope-failure-scope-success-tp4642313p4644704.html
- there is link to proposal by Herb Sutter about similar functionality.

-- 
Evgeny Panasyuk

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