From 7b712685cec8d6d09a591d112d7934380795078f Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 17 Oct 2011 20:36:56 +0000 Subject: [PATCH] Detail: Don't forward declare containers for gcc in profile mode. Refs #6029. Also a big clear comment about `BOOST_DETAIL_NO_CONTAINER_FWD` and a fixed typo. [SVN r75016] --- include/boost/detail/container_fwd.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/boost/detail/container_fwd.hpp b/include/boost/detail/container_fwd.hpp index 6716afd..5e4e047 100644 --- a/include/boost/detail/container_fwd.hpp +++ b/include/boost/detail/container_fwd.hpp @@ -16,6 +16,13 @@ #include #include +//////////////////////////////////////////////////////////////////////////////// +// // +// Define BOOST_DETAIL_NO_CONTAINER_FWD if you don't want this header to // +// forward declare standard containers. // +// // +//////////////////////////////////////////////////////////////////////////////// + #if !defined(BOOST_DETAIL_NO_CONTAINER_FWD) # if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) // STLport @@ -31,13 +38,15 @@ # define BOOST_DETAIL_NO_CONTAINER_FWD # elif defined(__GLIBCPP__) || defined(__GLIBCXX__) // GNU libstdc++ 3 -# if defined(_GLIBCXX_DEBUG) || defined(_GLIBCXX_PARALLEL) +# if defined(_GLIBCXX_DEBUG) \ + || defined(_GLIBCXX_PARALLEL) \ + || defined(_GLIBCXX_PROFILE) # define BOOST_DETAIL_NO_CONTAINER_FWD # endif # elif defined(__STL_CONFIG_H) // generic SGI STL // - // Forward declaration seems to be okay, but it has a copule of odd + // Forward declaration seems to be okay, but it has a couple of odd // implementations. # define BOOST_CONTAINER_FWD_BAD_BITSET # if !defined(__STL_NON_TYPE_TMPL_PARAM_BUG)