Boost C++ Libraries: Ticket #3866: detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL https://svn.boost.org/trac10/ticket/3866 <p> GCC supports a parallel mode activated by _GLIBCXX_PARALLEL. </p> <p> If you include &lt;boost/bimap&gt; under this parallel mode, you get compilation errors. </p> <p> detail/container_fwd.hpp needs to be updated to support it, in a similar way as the debug mode. The following patch appears to fix it : </p> <p> Index: detail/container_fwd.hpp =================================================================== --- detail/container_fwd.hpp (révision 59275) +++ detail/container_fwd.hpp (copie de travail) @@ -13,7 +13,7 @@ </p> <blockquote> <p> #include &lt;boost/config.hpp&gt; #include &lt;boost/detail/workaround.hpp&gt; </p> </blockquote> <p> </p> <table class="wiki"> <tr>-#if ((defined(<span class="underline">GLIBCPP</span>) <td> defined(<span class="underline">GLIBCXX</span>)) &amp;&amp; defined(_GLIBCXX_DEBUG)) \ </td></tr><tr>+#if ((defined(<span class="underline">GLIBCPP</span>) <td> defined(<span class="underline">GLIBCXX</span>)) &amp;&amp; (defined(_GLIBCXX_DEBUG) </td><td> defined(_GLIBCXX_PARALLEL)) \ </td></tr></table> <blockquote> <table class="wiki"> <tr><td> BOOST_WORKAROUND(<span class="underline">BORLANDC</span>, &gt; 0x551) \ </td></tr><tr><td> BOOST_WORKAROUND(<span class="underline">DMC</span>, BOOST_TESTED_AT(0x842)) \ </td></tr><tr><td> (defined(<span class="underline">SGI_STL_PORT) </span></td><td> defined(_STLPORT_VERSION)) </td></tr></table> </blockquote> <p> (I have lost my SVN access rights so I can't commit it myself) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3866 Trac 1.4.3 Daniel James Wed, 27 Jan 2010 16:19:46 GMT status, milestone changed; owner set https://svn.boost.org/trac10/ticket/3866#comment:1 https://svn.boost.org/trac10/ticket/3866#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Daniel James</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.42.0</span> → <span class="trac-field-new">Boost 1.43.0</span> </li> </ul> Ticket anonymous Wed, 27 Jan 2010 16:28:09 GMT <link>https://svn.boost.org/trac10/ticket/3866#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3866#comment:2</guid> <description> <p> Another comment about this file, while at it. </p> <p> What this file does is very fragile. It has the potential to break with any unforeseen configuration. Therefore, I would suggest to add a configuration macro for the user to be able to turn it off easily. If I understood it correctly, it is only a compile-time reduction feature, certainly not worth some big trouble. </p> <p> The way we have to workaround this problem currently is to ship a fixed copy of this file, with some appropriate Boost version detection. This is not really nice. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Wed, 27 Jan 2010 19:32:41 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3866#comment:3 https://svn.boost.org/trac10/ticket/3866#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59282" title="Don't foward declare containers when using gcc's parallel library and ...">[59282]</a>) Don't foward declare containers when using gcc's parallel library and add a macro to disable forward declaration. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3866" title="#3866: Bugs: detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL (closed: fixed)">#3866</a>. </p> Ticket Daniel James Sun, 14 Feb 2010 16:31:23 GMT <link>https://svn.boost.org/trac10/ticket/3866#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3866#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/59679" title="Merge some detail changes. - [53670] Avoid C style casts. - [55604] ...">[59679]</a>) Merge some detail changes. </p> <ul><li><a class="changeset" href="https://svn.boost.org/trac10/changeset/53670" title="avoid C style casts">[53670]</a> Avoid C style casts. </li><li><a class="changeset" href="https://svn.boost.org/trac10/changeset/55604" title="Fix #3346 boost/detail/scoped_enum_emulation.hpp enum_t conflict with ...">[55604]</a> Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3346" title="#3346: Bugs: enum_t in scoped_enum_emulation.hpp conflicts with system header ... (closed: fixed)">#3346</a> boost/detail/scoped_enum_emulation.hpp enum_t conflict with Unix rpc/types.h </li><li>Don't foward declare containers when using gcc's parallel library and add a macro to disable forward declaration. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3866" title="#3866: Bugs: detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL (closed: fixed)">#3866</a>. </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 12 Mar 2010 15:35:44 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3866#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3866#comment:5</guid> <description> <p> <a class="ext-link" href="http://kak-tak.com.ua"><span class="icon">​</span>КАК ТАК</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>