Index: boost/lambda/detail/operator_return_type_traits.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/lambda/detail/operator_return_type_traits.hpp,v retrieving revision 1.9 diff -u -p -r1.9 operator_return_type_traits.hpp --- boost/lambda/detail/operator_return_type_traits.hpp 27 Jul 2004 03:43:27 -0000 1.9 +++ boost/lambda/detail/operator_return_type_traits.hpp 29 Mar 2005 08:35:03 -0000 @@ -858,9 +858,13 @@ struct return_type_2 class basic_string; -} +// Forward declarations are incompatible with the libstdc++ debug mode. +#if BOOST_WORKAROUND(__GNUC__, >= 3) && _GLIBCXX_DEBUG +#include +#include +#include +#include +#else // The GCC 2.95.x uses a non-conformant deque #if BOOST_WORKAROUND(__GNUC__, == 2) && __GNUC_MINOR__ <= 96 @@ -873,12 +877,8 @@ namespace std { #endif -#if BOOST_WORKAROUND(__GNUC__, == 3) && __GNUC_MINOR__ >=4 -#include -#include -#else - namespace std { + template class basic_string; template class vector; template class map; template class multimap;