forked from boostorg/type_traits
Change check to s_check.
Fixes https://svn.boost.org/trac/boost/ticket/8542
This commit is contained in:
@@ -152,10 +152,10 @@ no_operator operator,(no_operator, has_operator);
|
||||
|
||||
template < typename Lhs, typename Rhs >
|
||||
struct operator_exists {
|
||||
static ::boost::type_traits::yes_type check(has_operator); // this version is preferred when operator exists
|
||||
static ::boost::type_traits::no_type check(no_operator); // this version is used otherwise
|
||||
static ::boost::type_traits::yes_type s_check(has_operator); // this version is preferred when operator exists
|
||||
static ::boost::type_traits::no_type s_check(no_operator); // this version is used otherwise
|
||||
|
||||
BOOST_STATIC_CONSTANT(bool, value = (sizeof(check(((make<Lhs>() BOOST_TT_TRAIT_OP make<Rhs>()),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
|
||||
BOOST_STATIC_CONSTANT(bool, value = (sizeof(s_check(((make<Lhs>() BOOST_TT_TRAIT_OP make<Rhs>()),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
|
||||
};
|
||||
|
||||
|
||||
|
@@ -138,10 +138,10 @@ no_operator operator,(no_operator, has_operator);
|
||||
|
||||
template < typename Lhs >
|
||||
struct operator_exists {
|
||||
static ::boost::type_traits::yes_type check(has_operator); // this version is preferred when operator exists
|
||||
static ::boost::type_traits::no_type check(no_operator); // this version is used otherwise
|
||||
static ::boost::type_traits::yes_type s_check(has_operator); // this version is preferred when operator exists
|
||||
static ::boost::type_traits::no_type s_check(no_operator); // this version is used otherwise
|
||||
|
||||
BOOST_STATIC_CONSTANT(bool, value = (sizeof(check(((make<Lhs>() BOOST_TT_TRAIT_OP),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
|
||||
BOOST_STATIC_CONSTANT(bool, value = (sizeof(s_check(((make<Lhs>() BOOST_TT_TRAIT_OP),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
|
||||
};
|
||||
|
||||
|
||||
|
@@ -146,10 +146,10 @@ no_operator operator,(no_operator, has_operator);
|
||||
|
||||
template < typename Rhs >
|
||||
struct operator_exists {
|
||||
static ::boost::type_traits::yes_type check(has_operator); // this version is preferred when operator exists
|
||||
static ::boost::type_traits::no_type check(no_operator); // this version is used otherwise
|
||||
static ::boost::type_traits::yes_type s_check(has_operator); // this version is preferred when operator exists
|
||||
static ::boost::type_traits::no_type s_check(no_operator); // this version is used otherwise
|
||||
|
||||
BOOST_STATIC_CONSTANT(bool, value = (sizeof(check(((BOOST_TT_TRAIT_OP make<Rhs>()),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
|
||||
BOOST_STATIC_CONSTANT(bool, value = (sizeof(s_check(((BOOST_TT_TRAIT_OP make<Rhs>()),make<has_operator>())))==sizeof(::boost::type_traits::yes_type)));
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user