Re: [Boost-bugs] [Boost C++ Libraries] #2098: system fails to compile with -fno-exceptions

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2098: system fails to compile with -fno-exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-18 20:48:08


#2098: system fails to compile with -fno-exceptions
----------------------------------+-----------------------------------------
  Reporter: brbarret@… | Owner: bemandawes
      Type: Bugs | Status: closed
 Milestone: Boost 1.36.0 | Component: system
   Version: Boost 1.35.0 | Severity: Problem
Resolution: fixed | Keywords:
----------------------------------+-----------------------------------------

Comment (by joeriedel@…):

 This no longer compiles on mac osx GCC 4 with BOOST_NO_EXCEPTIONS defined
 but without -fno-exceptions. BOOST_NO_EXCEPTIONS can be used to simply
 disable exception handling in boost no necessarily flag that exception
 handling is disabled at the compiler level:

 http://www.boost.org/doc/libs/1_36_0/libs/utility/throw_exception.html

 BOOST_NO_EXCEPTION can be used to supply a custom exception handler.

 Wrapping the try block on line 136 on system/error_code.cpp fixes this.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2098#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC