Ticket #6142: boost-has_xxx-defines.patch

File boost-has_xxx-defines.patch, 1.5 KB (added by Ivo Raisr <ivosh@…>, 11 years ago)
  • boost/mpl/has_xxx.hpp

    old new  
    341341      ) \
    342342    /**/
    343343
    344 #   if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
     344#   if !defined(BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION) || !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
    345345#     define BOOST_MPL_HAS_MEMBER_REJECT(args, member_macro) \
    346346        template< typename V > \
    347347        static boost::mpl::aux::no_tag \
     
    354354      /**/
    355355#   endif
    356356
    357 #   if !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
     357#   if !defined(BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES) || !BOOST_MPL_HAS_XXX_NO_WRAPPED_TYPES
    358358#     define BOOST_MPL_HAS_MEMBER_MULTI_ACCEPT(z, n, args) \
    359359        template< typename V > \
    360360        static boost::mpl::aux::yes_tag \
     
    383383      /**/
    384384#   endif
    385385
    386 #   if !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
     386#   if !defined(BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION) || !BOOST_MPL_HAS_XXX_NO_EXPLICIT_TEST_FUNCTION
    387387#     define BOOST_MPL_HAS_MEMBER_TEST(args) \
    388388          sizeof(BOOST_MPL_HAS_MEMBER_INTROSPECTION_TEST_NAME(args)< U >(0)) \
    389389              == sizeof(boost::mpl::aux::yes_tag) \
     
    456456      ) \
    457457    /**/
    458458
    459 #   if BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE
     459#   if defined(BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE) && BOOST_MPL_HAS_XXX_NEEDS_TEMPLATE_SFINAE
    460460
    461461#     if !defined(BOOST_MPL_HAS_XXX_NEEDS_NAMESPACE_LEVEL_SUBSTITUTE)
    462462#       if BOOST_WORKAROUND(BOOST_MSVC, <= 1400)