From 66fa4c867b7e1c02cf4981f7f43a0e200d77c448 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 16 Dec 2005 19:14:16 +0000 Subject: [PATCH] Change container_fwd.hpp to cooperate with gcc stdlib++'s debug mode. [SVN r32081] --- include/boost/functional/detail/container_fwd.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/boost/functional/detail/container_fwd.hpp b/include/boost/functional/detail/container_fwd.hpp index dca717e..fff0d0f 100644 --- a/include/boost/functional/detail/container_fwd.hpp +++ b/include/boost/functional/detail/container_fwd.hpp @@ -33,7 +33,6 @@ namespace std { template class allocator; - template class basic_string; #if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) @@ -41,7 +40,16 @@ namespace std #else template class char_traits; #endif + template class complex; +} +// gcc 3.4 and greater +#if defined(__GLIBCXX__) && defined(_GLIBCXX_DEBUG) +namespace __gnu_debug_def +#else +namespace std +#endif +{ #if !defined(BOOST_CONTAINER_FWD_BAD_DEQUE) template class deque; #endif @@ -57,8 +65,6 @@ namespace std #if !defined(BOOST_CONTAINER_FWD_BAD_BITSET) template class bitset; #endif - - template class complex; } #endif