From 3cb116cf117edcbb9c584f395493b423210c10fe Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 21 Jan 2003 13:54:27 +0000 Subject: [PATCH] aCC workaround [SVN r16975] --- include/boost/function/function_base.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 72b4951..ea0dbec 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -295,15 +295,21 @@ namespace boost { }; #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION + +# if BOOST_WORKAROUND(__HP_aCC, <= 33900) + template struct enable_if; +# else template struct enable_if; +# endif template struct enable_if { typedef T type; }; template struct enable_if {}; #else -# if defined(BOOST_STRICT_CONFIG) || !defined(__HP_aCC) || __HP_aCC > 33900 - template -# else + +# if BOOST_WORKAROUND(__HP_aCC, <= 33900) template +# else + template # endif struct enabled {