Boost logo

Boost Users :

Subject: Re: [Boost-users] Disabling Exception Handling
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-04-14 12:41:37


On Tue, Apr 14, 2009 at 6:34 AM, Dykstra, Martin <mdykstra_at_[hidden]> wrote:
> Is there a way to disable the exception handling in the Boost libraries?
> Our project requires that we disable exceptions by using the -no-exceptions
> parameter when building (via gcc).  Is this also a valid parameter to use
> when building the Boost libraries?

You can #define BOOST_NO_EXCEPTIONS. See
http://www.boost.org/doc/libs/1_38_0/libs/exception/doc/throw_exception.html.
Your results may vary, as in principle Boost libraries are not
required to call boost::throw_exception when throwing.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net