Ticket #7671 (closed Bugs: fixed)
Error including boost/thread.hpp header on iOS
|Reported by:||Dr.Schroers@…||Owned by:||viboes|
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.
Changed 4 years ago by Hyeon-bin Jeong <tuhertz@…>
comment:16 Changed 4 years ago by viboes
- Cc viboes added
- Owner changed from anthonyw to johnmaddock
- Component changed from thread to config
comment:19 Changed 4 years ago by viboes
- Owner changed from johnmaddock to viboes
- Status changed from new to assigned
- Component changed from config to thread