diff -aur boost_1_55_0-orig/boost/mpl/has_xxx.hpp boost_1_55_0-working/boost/mpl/has_xxx.hpp --- boost_1_55_0-orig/boost/mpl/has_xxx.hpp 2010-07-19 01:46:31.000000000 +0100 +++ boost_1_55_0-working/boost/mpl/has_xxx.hpp 2013-11-29 10:52:36.000000000 +0000 @@ -330,7 +330,7 @@ template< BOOST_PP_ENUM_PARAMS(BOOST_PP_INC(n), typename V) > class V \ > \ struct BOOST_MPL_HAS_MEMBER_INTROSPECTION_SUBSTITUTE_NAME(args, n) { \ - }; \ + typedef void type }; \ /**/ # define BOOST_MPL_HAS_MEMBER_SUBSTITUTE(args, substitute_macro) \ @@ -355,16 +355,29 @@ # endif # if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES +#if (defined __SUNPRO_CC) # define BOOST_MPL_HAS_MEMBER_MULTI_ACCEPT(z, n, args) \ template< typename V > \ static boost::mpl::aux::yes_tag \ BOOST_MPL_HAS_MEMBER_INTROSPECTION_TEST_NAME(args)( \ boost::mpl::aux::type_wrapper< V > const volatile* \ - , BOOST_MPL_HAS_MEMBER_INTROSPECTION_SUBSTITUTE_NAME(args, n) < \ + , typename BOOST_MPL_HAS_MEMBER_INTROSPECTION_SUBSTITUTE_NAME(args, n) < \ + U::template BOOST_PP_ARRAY_ELEM(1, args) \ + >::type* = 0 \ + ); \ + /**/ +#else +# define BOOST_MPL_HAS_MEMBER_MULTI_ACCEPT(z, n, args) \ + template< typename V > \ + static boost::mpl::aux::yes_tag \ + BOOST_MPL_HAS_MEMBER_INTROSPECTION_TEST_NAME(args)( \ + boost::mpl::aux::type_wrapper< V > const volatile* \ + , typename BOOST_MPL_HAS_MEMBER_INTROSPECTION_SUBSTITUTE_NAME(args, n) < \ V::template BOOST_PP_ARRAY_ELEM(1, args) \ - >* = 0 \ + >::type* = 0 \ ); \ /**/ +#endif # define BOOST_MPL_HAS_MEMBER_ACCEPT(args, member_macro) \ BOOST_PP_REPEAT( \ BOOST_PP_ARRAY_ELEM(2, args) \