Boost logo

Boost :

Subject: Re: [boost] clang++ isn't getting the BOOST_NO_CXX11_HDR_FUNCTIONAL flag that it needs
From: Eric Niebler (eniebler_at_[hidden])
Date: 2014-04-16 15:56:18


On 04/16/2014 06:08 AM, Beman Dawes wrote:
> On Tue, Apr 15, 2014 at 3:48 PM, Chris Cooper wrote:
>> 1. Would you agree that’s the right place to set
>> BOOST_NO_CXX11_HDR_FUNCTIONAL (when appropriate)?
>
>
> The right place is .../config/stdlib/libcpp.hpp since what header is
> available is a function of the library rather than the compiler.
>
> The current version of libcpp.hpp is pretty rudimentary and doesn't test
> for specific versions of libc++. You might want to read "Best way to
> detect libc++ at compile time?"
>
> See
> http://clang-developers.42468.n3.nabble.com/Best-way-to-detect-libc-at-compile-time-td4025578.html
>
> It would certainly be nice to get a patch to update libcpp.hpp.

Just be sure that you don't break clang with libstdc++ since that's a
common configuration, too.

Eric


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk