Boost logo

Boost :

Subject: [boost] [TR1] clang patch
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2011-07-22 11:13:06


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?

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !



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