From 7dcd9cd2244d3397e25b20fa9df330564554cfe2 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 13 Nov 2002 21:00:23 +0000 Subject: [PATCH] Metrowerks 7.2 can't handle enable_if [SVN r16226] --- include/boost/function/function_base.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index d9c85e3..f154cd9 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -63,6 +63,11 @@ namespace boost { namespace python { namespace objects { # define BOOST_FUNCTION_NO_ENABLE_IF #endif +// Metrowerks 7.2 doesn't support enable_if +#if defined(__MWERKS__) && __MWERKS__ <= 0x2407 && !defined(BOOST_NO_CONFIG) +# define BOOST_FUNCTION_NO_ENABLE_IF +#endif + #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) namespace boost {