Boost C++ Libraries: Ticket #11405: Version detection fails for libstdc++ 4.6 with clang https://svn.boost.org/trac10/ticket/11405 <p> boost/config/stdlib/libstdcpp3.hpp sets BOOST_LIBSTDCXX_VERSION to 40700. </p> <p> That causes BOOST_NO_CXX11_ALLOCATOR to be undefined. </p> <p> This is reproducible on Ubuntu Lucid: </p> <pre class="wiki">$ apt-get install g++ clang $ cat test.cc #include &lt;boost/shared_ptr.hpp&gt; $ 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 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11405 Trac 1.4.3 viboes Sun, 05 Jul 2015 22:46:55 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11405#comment:1 https://svn.boost.org/trac10/ticket/11405#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">config</span> </li> </ul> Ticket John Maddock Tue, 07 Jul 2015 11:32:35 GMT <link>https://svn.boost.org/trac10/ticket/11405#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11405#comment:2</guid> <description> <p> What is the actual GCC/libstdc++ version being used? </p> </description> <category>Ticket</category> </item> <item> <author>etienne@…</author> <pubDate>Tue, 07 Jul 2015 17:23:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11405#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11405#comment:3</guid> <description> <p> I have GCC and libstdc++ version 4.6.3 </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 07 Jul 2015 18:24:03 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11405#comment:4 https://svn.boost.org/trac10/ticket/11405#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks, I believe this should fix it: <a class="ext-link" href="https://github.com/boostorg/config/commit/15d56c9cff20e9643f508639517846a423fb948c"><span class="icon">​</span>https://github.com/boostorg/config/commit/15d56c9cff20e9643f508639517846a423fb948c</a> </p> <p> Please let me know if not. </p> Ticket Etienne Laurin <etienne@…> Tue, 07 Jul 2015 21:02:32 GMT <link>https://svn.boost.org/trac10/ticket/11405#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11405#comment:5</guid> <description> <p> Thanks, that patch seems to work. </p> </description> <category>Ticket</category> </item> </channel> </rss>