From 1e4fbe142c31086885a157aa570643433edf569f Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Tue, 7 Sep 2004 10:10:47 +0000 Subject: [PATCH] lambda fixes for MIPSpro [SVN r24949] --- include/boost/mpl/aux_/has_rebind.hpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/include/boost/mpl/aux_/has_rebind.hpp b/include/boost/mpl/aux_/has_rebind.hpp index 45fc86f..5ec8375 100644 --- a/include/boost/mpl/aux_/has_rebind.hpp +++ b/include/boost/mpl/aux_/has_rebind.hpp @@ -14,10 +14,13 @@ // $Date$ // $Revision$ -#include #include +#include +#include -#if BOOST_WORKAROUND(BOOST_MSVC, <= 1200) +#if BOOST_WORKAROUND(__EDG_VERSION__, <= 244) && !defined(BOOST_INTEL_CXX_VERSION) +# include +#elif BOOST_WORKAROUND(BOOST_MSVC, <= 1200) # include # include # include @@ -34,7 +37,11 @@ namespace boost { namespace mpl { namespace aux { -#if BOOST_WORKAROUND(BOOST_MSVC, <= 1200) +#if BOOST_WORKAROUND(__EDG_VERSION__, <= 244) && !defined(BOOST_INTEL_CXX_VERSION) + +BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(has_rebind, rebind, false) + +#elif BOOST_WORKAROUND(BOOST_MSVC, <= 1200) BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF(has_rebind_impl, rebind, false) @@ -48,7 +55,7 @@ struct has_rebind { }; -#else +#else // the rest template< typename T > struct has_rebind_tag {}; yes_tag operator|(has_rebind_tag, void const volatile*); @@ -62,7 +69,7 @@ struct has_rebind sizeof(has_rebind_tag() | get()) == sizeof(char) ); }; -# else +# else // __BORLANDC__ template< typename T > struct has_rebind_impl { @@ -81,9 +88,9 @@ struct has_rebind >::type { }; -# endif +# endif // __BORLANDC__ -#endif // BOOST_MSVC +#endif }}}