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

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2094: iostreams fails to compile with -fno-exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-11 23:31:46


#2094: iostreams fails to compile with -fno-exceptions
---------------------------------+------------------------------------------
 Reporter: brbarret@… | Owner: turkanis
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: iostreams
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------

Comment(by Richard Smith <richard@…>):

 I'm not actually sure how important -fno-exception support is these days.
 However, assuming this is still desirable (and in any case, it imposes
 very little overhead compared to the overhead of throwing an exception)
 the boost_iostreams_no_throw.diff patch replaces all instances of throw
 foo(); with boost::throw_exception(foo());.

 This is *not* sufficient for a clean -fno-exception compile with modern
 gcc -- we would also need to remove all throw; statements (for rethrowing)
 and try/catch blocks, although there are very few of them. This patch
 does not do anything with them.

 This patch needs applying after the patch on
 <https://svn.boost.org/trac/boost/ticket/3612>.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2094#comment:1>
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:01 UTC