Subject: [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 13:42:55
#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
Keywords: |
-----------------------------------------+----------------------------------
'''System configuration:''' MacOS X 10.8.2, Xcode 4.5.2, iOS SDK 6.0, iOS
6.0.1 installed on device, boost v1.52.0 compiled via the script at
http://gitorious.org/~galbraithjoseph/boostoniphone/galbraithjosephs-
boostoniphone
All latest patches and updates installed.
'''Setup:''' I have successfully built the boost.framework using the above
script and included it into an iOS project with a test target. One test
case class includes the file `<boost.thread.hpp>`.
'''Expected behavior:''' The test target is compiled and run on the
device.
'''Observed behavior:''' Compilation fails with three times the error
message "Semantic issue - Constexpr function never produces a constant
expression". In all three cases the issue appears to be due to the same
piece of code included in the following hierarchy:
{{{
boost/thread.hpp line 13:
boost/thread/thread.hpp line 17:
boost/thread/pthread/thread_data.hpp line 11:
boost/thread/locks.hpp line 11:
boost/chrono/time_point.hpp line 18:
boost/chrono/duration.hpp line 33:
boost/chrono/duration.hpp lines 355/363/371:
limits line 443
}}}
'''Comment:''' This applies only to the `thread.hpp` header. In the test
case object I have also included the `<boost.regex.hpp>` and the
`<boost/lambda/lambda.hpp>` headers. These two are correctly included and
the corresponding test cases work as expected. Only the `thread.hpp`
header shows the issue described above.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7671> 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