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