#3866 closed Bugs (fixed)
detail/container_fwd.hpp lacks support for the parallel mode of GCC's STL
Reported by: | Owned by: | Daniel James | |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | None |
Version: | Boost 1.41.0 | Severity: | Problem |
Keywords: | Cc: | Stephane.Tayeb@… |
Description
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>
defined(GLIBCXX)) && defined(_GLIBCXX_DEBUG)) \ | |
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)
Change History (5)
comment:1 by , 13 years ago
Milestone: | Boost 1.42.0 → Boost 1.43.0 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:2 by , 13 years ago
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Another comment about this file, while at it.
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.
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.