Ticket #9441: has_xxx.2.patch

File has_xxx.2.patch, 1.8 KB (added by anonymous, 9 years ago)

Whoops, missing ; in the first patch.

  • boost/mpl/has_xxx.hpp

    diff -aur boost_1_55_0-orig/boost/mpl/has_xxx.hpp boost_1_55_0-working/boost/mpl/has_xxx.hpp
    old new  
    330330          template< BOOST_PP_ENUM_PARAMS(BOOST_PP_INC(n), typename V) > class V \
    331331       > \
    332332      struct BOOST_MPL_HAS_MEMBER_INTROSPECTION_SUBSTITUTE_NAME(args, n) { \
    333       }; \
     333      typedef void type; }; \
    334334    /**/
    335335
    336336#   define BOOST_MPL_HAS_MEMBER_SUBSTITUTE(args, substitute_macro) \
    … …  
    355355#   endif
    356356
    357357#   if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
     358#if (defined __SUNPRO_CC)
    358359#     define BOOST_MPL_HAS_MEMBER_MULTI_ACCEPT(z, n, args) \
    359360        template< typename V > \
    360361        static boost::mpl::aux::yes_tag \
    361362        BOOST_MPL_HAS_MEMBER_INTROSPECTION_TEST_NAME(args)( \
    362363            boost::mpl::aux::type_wrapper< V > const volatile* \
    363           , BOOST_MPL_HAS_MEMBER_INTROSPECTION_SUBSTITUTE_NAME(args, n) < \
     364          , typename BOOST_MPL_HAS_MEMBER_INTROSPECTION_SUBSTITUTE_NAME(args, n) < \
     365                U::template BOOST_PP_ARRAY_ELEM(1, args) \
     366            >::type* = 0 \
     367        ); \
     368      /**/
     369#else
     370#     define BOOST_MPL_HAS_MEMBER_MULTI_ACCEPT(z, n, args) \
     371        template< typename V > \
     372        static boost::mpl::aux::yes_tag \
     373        BOOST_MPL_HAS_MEMBER_INTROSPECTION_TEST_NAME(args)( \
     374            boost::mpl::aux::type_wrapper< V > const volatile* \
     375          , typename BOOST_MPL_HAS_MEMBER_INTROSPECTION_SUBSTITUTE_NAME(args, n) < \
    364376                V::template BOOST_PP_ARRAY_ELEM(1, args) \
    365             >* = 0 \
     377            >::type* = 0 \
    366378        ); \
    367379      /**/
     380#endif
    368381#     define BOOST_MPL_HAS_MEMBER_ACCEPT(args, member_macro) \
    369382        BOOST_PP_REPEAT( \
    370383            BOOST_PP_ARRAY_ELEM(2, args) \