Boost C++ Libraries: Ticket #10930: container std_fwd.hpp neglects custom std namespaces https://svn.boost.org/trac10/ticket/10930 <p> I've a special gcc with versioned libstdc++ std namespace (compiled with --enable-symvers=gnu-versioned-namespace). </p> <p> The file container/detail/std_fwd.hpp fails to detect that and assumes std namespace to be "std" <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a>. It generates problems during compilation. </p> <p> My current workaround is to define the header macro in the compiler's argument list and remove this file content out. </p> <p> A different fix - possibly detecting the proper std namespace - would be ideal here. </p> <p> <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a>: </p> <pre class="wiki">//github.com/boostorg/container/blob/5d6123152cceb8f412f1f67829055232116bdb87/include/boost/container/detail/std_fwd.hpp#L29 #else #define BOOST_CONTAINER_STD_NS_BEG namespace std{ #define BOOST_CONTAINER_STD_NS_END } #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10930 Trac 1.4.3 viboes Fri, 13 Feb 2015 18:29:24 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10930#comment:1 https://svn.boost.org/trac10/ticket/10930#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Ion Gaztañaga</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">container</span> </li> </ul> Ticket Ion Gaztañaga Wed, 11 Mar 2015 20:23:28 GMT <link>https://svn.boost.org/trac10/ticket/10930#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10930#comment:2</guid> <description> <p> Current develop and master branches contain code that tries to detect GCC std namespace versioning macro: </p> <p> <a href="http://www.boost.org/doc/libs/master/boost/container/detail/std_fwd.hpp">http://www.boost.org/doc/libs/master/boost/container/detail/std_fwd.hpp</a> </p> <p> Would this fix your problem? </p> </description> <category>Ticket</category> </item> <item> <author>dmorilha@…</author> <pubDate>Sat, 14 Mar 2015 19:13:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/10930#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10930#comment:3</guid> <description> <p> It compiles all right, so I guess it fixes the problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Sat, 14 Mar 2015 20:15:10 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10930#comment:4 https://svn.boost.org/trac10/ticket/10930#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 for the report. Fixed in release branch for boost 1.58. </p> Ticket