Re: [Boost-bugs] [Boost C++ Libraries] #8367: chrono does not compile with clang from XCode 4.5.2 with -std=c++11 -stdlib=libc++ and -arch armv7

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8367: chrono does not compile with clang from XCode 4.5.2 with -std=c++11 -stdlib=libc++ and -arch armv7
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-10 17:01:30


#8367: chrono does not compile with clang from XCode 4.5.2 with -std=c++11
-stdlib=libc++ and -arch armv7
--------------------------------------------------------------+-------------
  Reporter: Franz Detro <franz.detro@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: chrono
   Version: Boost 1.53.0 | Severity: Showstopper
Resolution: | Keywords:
--------------------------------------------------------------+-------------

Comment (by viboes):

 Replying to [comment:2 Franz Detro <franz.detro@…>]:
>
> BOOST_NO_CXX11_NUMERIC_LIMITS is undefined.
>
> Here's the extract of clangs config file:
>
> {{{
> #define _LIBCPP_VERSION 1101
>
> #define _LIBCPP_ABI_VERSION 1
>
> }}}
>
> The problem is related to the combination of -std=c++11 and
 -stdlib=libc++. If I use only one of them, everything is fine.


 Please could you try the following patch


 {{{
 #if defined( BOOST_NO_CXX11_NUMERIC_LIMITS )
 #define BOOST_CHRONO_LIB_CONSTEXPR
 #elif defined(_LIBCPP_VERSION) && _LIBCPP_VERSION <= 1101
   #define BOOST_CHRONO_LIB_CONSTEXPR
 #else
   #define BOOST_CHRONO_LIB_CONSTEXPR BOOST_CONSTEXPR
 #endif
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8367#comment:4>
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:12 UTC