Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7335: Using Boost.Pool requires to link with Boost.System
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-07 18:09:03
#7335: Using Boost.Pool requires to link with Boost.System
--------------------------------------+----------------------
Reporter: Ivan A. Melnikov <iv@â¦> | Owner: cnewbold
Type: Bugs | Status: new
Milestone: Boost 1.52.0 | Component: pool
Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------+----------------------
Comment (by manuel.freiberger@â¦):
Replying to [comment:4 bimargulies@â¦]:
> Is there any way around this to disable the use of the mutex?
I also stumbled across this bug. The pool library pulls the header
<boost/thread/mutex.hpp>
even if the user has defined BOOST_NO_MT or BOOST_POOL_NO_MT.
It would be good to change line 13 of <boost/thread/mutex.hpp> from
#ifdef BOOST_HAS_THREADS
to
#if defined(BOOST_HAS_THREADS) && !defined(BOOST_NO_MT) &&
!defined(BOOST_POOL_NO_MT)
(this is the complement of the expression from line 32).
This would allow to use Boost.Pool without depending on Boost.System.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7335#comment:5> 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:13 UTC