diff --git a/include/boost/cast.hpp b/include/boost/cast.hpp index bf5c77c..eaf2a3d 100644 --- a/include/boost/cast.hpp +++ b/include/boost/cast.hpp @@ -142,7 +142,7 @@ namespace boost template struct fixed_numeric_limits_base : public if_true< std::numeric_limits::is_signed > - ::template then< signed_numeric_limits, + ::BOOST_NESTED_TEMPLATE then< signed_numeric_limits, std::numeric_limits >::type {}; @@ -337,7 +337,10 @@ namespace boost typedef detail::fixed_numeric_limits arg_traits; typedef detail::fixed_numeric_limits result_traits; -#if !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS) || defined(BOOST_SGI_CPP_LIMITS) +#if defined(BOOST_STRICT_CONFIG) \ + || (!defined(__HP_aCC) || __HP_aCC > 33900) \ + && (!defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS) \ + || defined(BOOST_SGI_CPP_LIMITS)) // typedefs that act as compile time assertions // (to be replaced by boost compile time assertions // as and when they become available and are stable)