
Message du 22/03/11 20:30 De : "Emil Dotchevski" A : boost@lists.boost.org Copie à : Objet : Re: [boost] [inspect] exceptions (FW: [Boost-users] no exceptions)
On Tue, Mar 22, 2011 at 12:16 PM, Krzysztof Czainski <1czajnik@gmail.com> 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