From 18d09833f7f542b5cbc62b2c856d6cc107ced197 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 9 Nov 2002 17:16:24 +0000 Subject: [PATCH] Neither MSVC nor Borland can handle enable_if. Big surprise. [SVN r16177] --- include/boost/function/function_base.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 23d880b..0e144e5 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -47,10 +47,22 @@ namespace boost { namespace python { namespace objects { #if defined(__GNUC__) && __GNUC__ < 3 || ( __GNUC__ == 3 && __GNUC_MINOR__ <= 2 ) && !(BOOST_NO_CONFIG) # define BOOST_FUNCTION_NO_ENABLE_IF #endif + +// MIPSpro 7.3.1.3m doesn't support enable_if #if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730 && !defined(BOOST_NO_CONFIG) # define BOOST_FUNCTION_NO_ENABLE_IF #endif +// MSVC 6.0 doesn't support enable_if +#if defined(BOOST_MSVC) && BOOST_MSVC <= 1200 && !defined(BOOST_NO_CONFIG) +# define BOOST_FUNCTION_NO_ENABLE_IF +#endif + +// Borland C++ 5.5.1 doesn't support enable_if +#if defined(__BORLANDC__) && __BORLANDC__ <= 0x551 && !defined(BOOST_NO_CONFIG) +# define BOOST_FUNCTION_NO_ENABLE_IF +#endif + #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) namespace boost {