diff --git a/include/boost/type_traits/detail/bool_trait_def.hpp b/include/boost/type_traits/detail/bool_trait_def.hpp index eccf69e..db51dda 100644 --- a/include/boost/type_traits/detail/bool_trait_def.hpp +++ b/include/boost/type_traits/detail/bool_trait_def.hpp @@ -17,7 +17,7 @@ #include #include -#if defined(__SUNPRO_CC) +#if defined(__SUNPRO_CC) && (__SUNPRO_CC < 0x570) # define BOOST_TT_AUX_BOOL_TRAIT_VALUE_DECL(C) \ typedef ::boost::integral_constant type; \ enum { value = type::value }; \ diff --git a/include/boost/type_traits/type_traits_test.hpp b/include/boost/type_traits/type_traits_test.hpp index 1e8961c..859a6c8 100644 --- a/include/boost/type_traits/type_traits_test.hpp +++ b/include/boost/type_traits/type_traits_test.hpp @@ -257,7 +257,7 @@ struct nested_test } }; -#ifndef __SUNPRO_CC +#if !(defined(__SUNPRO_CC) && (__SUNPRO_CC < 0x570)) #define NESTED_DECL(what)\ template \ struct BOOST_TT_JOIN(nested_tester_,what){\