Boost logo

Boost :

Subject: Re: [boost] [type_traits] is_enum on scoped enums doesn't works as expected
From: Michel MORIN (mimomorin_at_[hidden])
Date: 2011-08-25 05:47:17


Vicente J. Botet Escriba wrote:
> Which is the default library when buildding with Boost.Build (bjam) and
> clang 2.9 c++0x?

I think it depends on how clang is built and Boost.Build is not relevant here.

In my setting, clang uses libstdc++ of gcc-4.2 which does not support C++0x.
IIRC, clang does not support newer versions of libstdc++.
So, to use the C++0x's standard library, you need
libc++ (http://libcxx.llvm.org/).
Clang uses libc++ if you pass "-stdlib=libc++" to the compiler.

FYI, the code (with modification of `boost::is_enum` to `std::is_enum`)
compiles fine with clang and libc++.

Regards,
Michel


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