[Boost-bugs] [Boost C++ Libraries] #12639: Boost.Spirit + BOOST_DISABLE_THREAD problem

Subject: [Boost-bugs] [Boost C++ Libraries] #12639: Boost.Spirit + BOOST_DISABLE_THREAD problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-12-01 10:17:57


#12639: Boost.Spirit + BOOST_DISABLE_THREAD problem
------------------------------+---------------------
 Reporter: anonymous | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 While updating the version of Boost used by some older code, I ran into a
 compiler-error with respect to Boost.Spirit. My code is explicitly
 defining 'BOOST_DISABLE_THREAD' to avoid linking in the threading library.

 I tracked down the error to line 13 of
 https://github.com/boostorg/spirit/blob/develop/include/boost/spirit/home/classic/utility/scoped_lock.hpp

 In the latest check-in (July 2015), the "#include
 <boost/thread/lock_types.hpp>" line was added. This line causes a compile
 error when 'BOOST_DISABLE_THREAD' is defined. (It indirectly includes
 other headers which 'require' the Boost.Thread library.)

 I would blindly suggest that wrapping line 13 in a "#ifndef
 BOOST_DISABLE_THREAD" seems to solve the problem?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12639>
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:20 UTC