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-13 16:42:49


#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 tuhertz):

 If you don't change C++ Language Dialect in Build Setting, you will get
 errors no matter which library you choose.
 Because Boost knows your compiler supports C+11 `constexpr`, but both
 `libc++` and `libstdc++` don't implement it in `limits` header.
 Changing language dialect to C++98 is easiest fix if you don't have to
 build Boost with C++11.

 I think building with custom `limits` header won't make any trouble,
 because `limits` is header only library and all classes are empty classes.
 All members are static or inline methods, so it will just replace with
 constants in Boost library in compilation time.
 You don't need to replacing system header, just adding it's location to
 Header Search Path in build settings, it takes precedence over system
 header.

 libc++ has been updated in Xcode 4.6 developer preview and i confirm
 `limit` header is updated also, so this problem will be gone in next Xcode
 release.

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