From 9cf5e8efbe456d5dc459d3b2e277df204e2b78d2 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 4 Dec 2002 15:54:33 +0000 Subject: [PATCH] Workaround Sun and HP bugs [SVN r16511] --- include/boost/function/function_base.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 84bacfe..77f9631 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -68,6 +68,10 @@ namespace boost { namespace python { namespace objects { # define BOOST_FUNCTION_NO_ENABLE_IF #endif +#if defined(__SUNPRO_CC) && __SUNPRO_CC <= 0x540 && !defined(BOOST_STRICT_CONFIG) +# define BOOST_FUNCTION_NO_ENABLE_IF +#endif + #if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) namespace boost { @@ -280,7 +284,11 @@ namespace boost { } }; +# if defined(BOOST_STRICT_CONFIG) || !defined(__HP_aCC) || __HP_aCC > 33900 template +# else + template +# endif struct enabled { template