Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7875: BOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED should not be enabled by default
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-10 12:50:44
#7875: BOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED should not be enabled by
default
--------------------------------------------------------------+-------------
Reporter: Andrew Molyneux <andrew.molyneux@â¦> | Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------------------+-------------
Comment (by viboes):
Yes, this is abug on 1.52. Version 1.53 lets all (almost all) the uses of
BOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED on the header files
E.g. the thread::join function is defined on boost/detail/thread.hpp as
follows
{{{
void thread::join() {
if (this_thread::get_id() == get_id())
boost::throw_exception(thread_resource_error(system::errc::resource_deadlock_would_occur,
"boost thread: trying joining itself"));
BOOST_THREAD_VERIFY_PRECONDITION( join_noexcept(),
thread_resource_error(system::errc::invalid_argument, "boost
thread: thread not joinable")
);
}
}}}
I will however comment the Jamfile.v2 line
{{{
<define>BOOST_THREAD_THROW_IF_PRECONDITION_NOT_SATISFIED
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7875#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:11 UTC