Boost logo

Boost :

Subject: Re: [boost] [TR1] clang patch
From: Doug Gregor (doug.gregor_at_[hidden])
Date: 2011-07-22 11:58:52


On Fri, Jul 22, 2011 at 8:13 AM, Jürgen Hunold <juergen.hunold_at_[hidden]> wrote:
> Hi John,
>
> the current clang (version 3.0 (trunk 135764)) is still emulating gcc-4.2.1
> which leads to a lot of the tr1-tests failing with:
>
> boost/boost/tr1/detail/config_all.hpp:158:12: fatal error: '../4.2.1/utility'
> file not found
> #  include BOOST_TR1_STD_HEADER(utility)
>           ^
> boost/boost/tr1/detail/config_all.hpp:100:44: note: expanded from:
> #        define BOOST_TR1_STD_HEADER(name)
> <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>
>                                           ^
> 1 error generated.
>
> if your installed gcc is not 4.2.1.
>
> The attached patch fixes this by introducing a special case for clang.
>
> This fixes all but eight tr1-tests for clang trunk.
>
> Okay to commit?

I don't understand why these tests are based on the compiler rather
than the standard library?

  - Doug


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