Re: [Boost-bugs] [Boost C++ Libraries] #7671: Error including boost/thread.hpp header on iOS

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7671: Error including boost/thread.hpp header on iOS
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-09 15:47:29


#7671: Error including boost/thread.hpp header on iOS
------------------------------------------+---------------------------------
  Reporter: Dr.Schroers@… | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------+---------------------------------

Comment (by Wolfram Schroers <Dr.Schroers@…>):

 I could not access the specific command the Xcode IDE issues (I will try
 it with `xcodebuild` on the command line later), but the error message in
 the header `boost/chrono/duration.hpp` says "Non-constexpr function 'max'
 cannot be used in constant expression".

 I just noticed that the issue goes away if I remove
 `BOOST_CHRONO_LIB_CONSTEXPR` in lines 353, 361 and 369 in the file
 `boost/chrono/duration.hpp` and the project compiles fine.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7671#comment:3>
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