Boost logo

Boost :

Subject: [boost] [TypeTraits] A patch for clang's intrinsics (was: [type_traits] is_enum on scoped enums doesn't works as expected)
From: Michel MORIN (mimomorin_at_[hidden])
Date: 2011-08-31 12:40:20


John Maddock wrote:
>> Boost.TypeTraits does not use intrinsics for clang yet.
>> (c.f. https://svn.boost.org/trac/boost/changeset/72725)
>>
>>
>> this explains why it is not working now. Is someone working on this issue?
>
> Not me, we need a Clang expert to look into it - or at least someone with
> access to Clang to take care of the testing - someone did submit a patch to
> enable intrinsic support for Clang, but it broke more things than it fixed
> so it got reverted :-(

Let's proceed step by step.
As a first step, I made a patch to use clang's intrinsics except
problematic intrinsics (i.e. `is_pod` and `is_empty`).

All the tests run successfully on gcc-4.4, 4.5, 4.6, clang (trunk) and
Mac OS X Lion's clang (Apple clang version 2.1).

Regards,
Michel




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