Ticket #8542: 8542.patch

File 8542.patch, 3.4 KB (added by Marshall Clow, 9 years ago)
  • include/boost/type_traits/detail/has_binary_operator.hpp

    diff --git a/include/boost/type_traits/detail/has_binary_operator.hpp b/include/boost/type_traits/detail/has_binary_operator.hpp
    index 9f91843..f8d5e0f 100644
    a b no_operator operator,(no_operator, has_operator);  
    152152
    153153template < typename Lhs, typename Rhs >
    154154struct operator_exists {
    155    static ::boost::type_traits::yes_type check(has_operator); // this version is preferred when operator exists
    156    static ::boost::type_traits::no_type check(no_operator); // this version is used otherwise
     155   static ::boost::type_traits::yes_type check_(has_operator); // this version is preferred when operator exists
     156   static ::boost::type_traits::no_type  check_(no_operator); // this version is used otherwise
    157157
    158    BOOST_STATIC_CONSTANT(bool, value = (sizeof(check(((make<Lhs>() BOOST_TT_TRAIT_OP make<Rhs>()),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
     158   BOOST_STATIC_CONSTANT(bool, value = (sizeof(check_(((make<Lhs>() BOOST_TT_TRAIT_OP make<Rhs>()),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
    159159};
    160160
    161161
  • include/boost/type_traits/detail/has_postfix_operator.hpp

    diff --git a/include/boost/type_traits/detail/has_postfix_operator.hpp b/include/boost/type_traits/detail/has_postfix_operator.hpp
    index 52b8f81..b509bb5 100644
    a b no_operator operator,(no_operator, has_operator);  
    138138
    139139template < typename Lhs >
    140140struct operator_exists {
    141    static ::boost::type_traits::yes_type check(has_operator); // this version is preferred when operator exists
    142    static ::boost::type_traits::no_type check(no_operator); // this version is used otherwise
     141   static ::boost::type_traits::yes_type check_(has_operator); // this version is preferred when operator exists
     142   static ::boost::type_traits::no_type  check_(no_operator); // this version is used otherwise
    143143
    144    BOOST_STATIC_CONSTANT(bool, value = (sizeof(check(((make<Lhs>() BOOST_TT_TRAIT_OP),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
     144   BOOST_STATIC_CONSTANT(bool, value = (sizeof(check_(((make<Lhs>() BOOST_TT_TRAIT_OP),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
    145145};
    146146
    147147
  • include/boost/type_traits/detail/has_prefix_operator.hpp

    diff --git a/include/boost/type_traits/detail/has_prefix_operator.hpp b/include/boost/type_traits/detail/has_prefix_operator.hpp
    index 9c4ccd5..b3d397c 100644
    a b no_operator operator,(no_operator, has_operator);  
    146146
    147147template < typename Rhs >
    148148struct operator_exists {
    149    static ::boost::type_traits::yes_type check(has_operator); // this version is preferred when operator exists
    150    static ::boost::type_traits::no_type check(no_operator); // this version is used otherwise
     149   static ::boost::type_traits::yes_type check_(has_operator); // this version is preferred when operator exists
     150   static ::boost::type_traits::no_type  check_(no_operator); // this version is used otherwise
    151151
    152    BOOST_STATIC_CONSTANT(bool, value = (sizeof(check(((BOOST_TT_TRAIT_OP make<Rhs>()),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
     152   BOOST_STATIC_CONSTANT(bool, value = (sizeof(check_(((BOOST_TT_TRAIT_OP make<Rhs>()),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
    153153};
    154154
    155155