Boost logo

Boost :

Subject: Re: [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
From: Vicente BOTET (vicente.botet_at_[hidden])
Date: 2011-03-22 15:51:22


> Message du 22/03/11 20:30
> De : "Emil Dotchevski"
> A : boost_at_[hidden]
> Copie à :
> Objet : Re: [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
>
> On Tue, Mar 22, 2011 at 12:16 PM, Krzysztof Czainski <1czajnik_at_[hidden]> wrote:
> > What about boost/detail/no_exceptions_support.hpp? Could that file be moved
> > to boost/exception for public use? I use it, but don't feel comfortable with
> > it being in the detail directory.
>
> This header is news to me. :) Maybe something like this could become a
> documented part of Boost Exception.

I'm wonderyn if the following wouldn't be more natural

void foo() {
BOOST_TRY {
...
} BOOST_CATCH(const std::bad_alloc&) {
...
BOOST_RETHROW
} BOOST_CATCH(const std::exception& e) {
...
} BOOST_CATCH_ALL {
...
}
}

See the attached file.

Best,
Vicente




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