[Boost-bugs] [Boost C++ Libraries] #3866: detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL

Subject: [Boost-bugs] [Boost C++ Libraries] #3866: detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-01-27 16:11:57


#3866: detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL
------------------------------------------+---------------------------------
 Reporter: Sylvain.Pion@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: None
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
------------------------------------------+---------------------------------
 GCC supports a parallel mode activated by _GLIBCXX_PARALLEL.

 If you include <boost/bimap> under this parallel mode, you get compilation
 errors.

 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 :

 Index: detail/container_fwd.hpp
 ===================================================================
 --- detail/container_fwd.hpp (révision 59275)
 +++ detail/container_fwd.hpp (copie de travail)
 @@ -13,7 +13,7 @@
  #include <boost/config.hpp>
  #include <boost/detail/workaround.hpp>

 -#if ((defined(__GLIBCPP__) || defined(__GLIBCXX__)) &&
 defined(_GLIBCXX_DEBUG)) \
 +#if ((defined(__GLIBCPP__) || defined(__GLIBCXX__)) &&
 (defined(_GLIBCXX_DEBUG) || defined(_GLIBCXX_PARALLEL)) \
      || BOOST_WORKAROUND(__BORLANDC__, > 0x551) \
      || BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x842)) \
      || (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))



 (I have lost my SVN access rights so I can't commit it myself)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3866>
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:02 UTC