Subject: [Boost-bugs] [Boost C++ Libraries] #11405: Version detection fails for libstdc++ 4.6 with clang
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-17 23:42:25
#11405: Version detection fails for libstdc++ 4.6 with clang
----------------------------------------+------------------------------
Reporter: Etienne Laurin <etienne@â¦> | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.57.0
Severity: Problem | Keywords:
----------------------------------------+------------------------------
boost/config/stdlib/libstdcpp3.hpp sets BOOST_LIBSTDCXX_VERSION to 40700.
That causes BOOST_NO_CXX11_ALLOCATOR to be undefined.
This is reproducible on Ubuntu Lucid:
{{{
$ apt-get install g++ clang
$ cat test.cc
#include <boost/shared_ptr.hpp>
$ clang++ -isystem boost_1_58_0 -c -std=c++0x test.cc
boost_1_58_0/boost/smart_ptr/detail/shared_count.hpp:231:31: error: no
type named 'allocator_traits' in namespace 'std'
$ clang++ -isystem boost_1_58_0 -c -std=c++11 test.cc
-DBOOST_NO_CXX11_ALLOCATOR
# No error
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11405> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC