
25 Aug
2011
25 Aug
'11
9:47 a.m.
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