Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2100: thread fails to compile with -fno-exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-24 22:28:23
#2100: thread fails to compile with -fno-exceptions
---------------------------------+------------------------------------------
Reporter: brbarret@⦠| Owner: anonymous
Type: Bugs | Status: assigned
Milestone: Boost 1.40.0 | Component: thread
Version: Boost 1.35.0 | Severity: Problem
Keywords: |
---------------------------------+------------------------------------------
Changes (by anonymous):
* owner: anthonyw => anonymous
* status: new => assigned
Comment:
I've committed a change to trunk that uses boost::throw_exception in most
cases. The only cases I haven't touched are where thread_interrupted is
thrown at a cancellation point. Interruption relies on exceptions to work
properly, and as Jonathan points out, thread_interruption should not be
derived from std::exception (and so won't work with
boost::throw_exception).
I'm inclined to think that interruption should not be available with
exceptions disabled, in which case this code can be masked with a #ifdef.h
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2100#comment:8> 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