Boost logo

Boost :

Subject: Re: [boost] Clang 3.4 failing to compile boost 1.57 headers
From: Bjørn Roald (bjorn_at_[hidden])
Date: 2015-01-17 21:08:28


On 18. jan. 2015 02:53, Robert Dailey wrote:
> I'm including <boost/format.hpp> and getting this error from Clang 3.4
> on Ubuntu 12:
>
> In file included from
> /home/fe/frontend/Core/ThirdParty/boost/include/boost/format.hpp:38:
> In file included from
> /home/fe/frontend/Core/ThirdParty/boost/include/boost/format/internals.hpp:23:
> In file included from
> /home/fe/frontend/Core/ThirdParty/boost/include/boost/format/alt_sstream.hpp:21:
> In file included from
> /home/fe/frontend/Core/ThirdParty/boost/include/boost/shared_ptr.hpp:17:
> In file included from
> /home/fe/frontend/Core/ThirdParty/boost/include/boost/smart_ptr/shared_ptr.hpp:28:
> In file included from
> /home/fe/frontend/Core/ThirdParty/boost/include/boost/smart_ptr/detail/shared_count.hpp:30:
> /home/fe/frontend/Core/ThirdParty/boost/include/boost/smart_ptr/detail/sp_counted_impl.hpp:229:31:
> error: no type named 'allocator_traits' in
> namespace 'std'
> typedef typename std::allocator_traits<A>::template
> rebind_alloc< this_type > A2;
> ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
>
>
> Is this a bug or am I missing something? I'm using -std=C++11 flag.

From: http://clang.llvm.org/cxx_status.html

: Clang's C++11 mode can be used with libc++ or with gcc's libstdc++,
: but patches are needed to make libstdc++-4.4 work with Clang in C++11
: mode.

You may be using and old version of libstdc++ on ubuntu 12.??

--
Bjørn

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