From 17612676b83ef42cdffcda9192253e25b5f79397 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 11 Jan 2012 23:00:55 +0000 Subject: [PATCH] Detail: Disable container forward declarations for recent versions of libstdc++, refs #6326. [SVN r76419] --- include/boost/detail/container_fwd.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/detail/container_fwd.hpp b/include/boost/detail/container_fwd.hpp index 659e428..7df7ccb 100644 --- a/include/boost/detail/container_fwd.hpp +++ b/include/boost/detail/container_fwd.hpp @@ -38,7 +38,11 @@ # define BOOST_DETAIL_NO_CONTAINER_FWD # elif defined(__GLIBCPP__) || defined(__GLIBCXX__) // GNU libstdc++ 3 -# if defined(_GLIBCXX_DEBUG) \ + // + // Disable forwarding for all recent versions, as the library has a + // versioned namespace mode, and I don't know how to detect it. +# if __GLIBCXX__ >= 20070513 \ + || defined(_GLIBCXX_DEBUG) \ || defined(_GLIBCXX_PARALLEL) \ || defined(_GLIBCXX_PROFILE) # define BOOST_DETAIL_NO_CONTAINER_FWD