Boost logo

Boost Users :

Subject: Re: [Boost-users] {exception][boost::throw_exception][BOOST_NO_EXCEPTIONS] implications
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2013-10-28 15:13:51

On Mon, Oct 28, 2013 at 8:22 AM, Jeff Flinn <Jeffrey.Flinn_at_[hidden]> wrote:
> #error This header requires exception handling to be enabled.
> #endif
> in ...\boost_1_55_0b1\boost\exception\detail\exception_ptr.hpp. This implies
> that BOOST_NO_EXCEPTIONS is used for more that just allowing client code to
> supply it's own throw_exception.

BOOST_NO_EXCEPTIONS disables exception handling in Boost. See

> Does boost and/or C++ provide a better customization point to safely
> translate exceptions thrown by boost?

No. If you really want to do this (translating exception types is
usually a bad idea) you can edit boost/throw_exception.hpp to suit
your needs.

Emil Dotchevski

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at