#11405 closed Bugs (fixed)
Version detection fails for libstdc++ 4.6 with clang
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | config |
Version: | Boost 1.57.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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
Change History (5)
comment:1 by , 7 years ago
Component: | None → config |
---|---|
Owner: | set to |
comment:2 by , 7 years ago
comment:4 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks, I believe this should fix it: https://github.com/boostorg/config/commit/15d56c9cff20e9643f508639517846a423fb948c
Please let me know if not.
Note:
See TracTickets
for help on using tickets.
What is the actual GCC/libstdc++ version being used?