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 {