|
Boost Users : |
Subject: Re: [Boost-users] Disabling Exception Handling
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-04-14 13:24:04
Emil Dotchevski:
> 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.
There should be no need to #define BOOST_NO_EXCEPTIONS by hand.
boost/config/compiler/gcc.hpp defines it automatically when -fno-exceptions
is used:
#ifndef __EXCEPTIONS
# define BOOST_NO_EXCEPTIONS
#endif
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