forked from boostorg/type_traits
Remove dependency on ice.hpp for operator traits.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/type_traits/ice.hpp>
|
||||
#include <boost/type_traits/detail/yes_no_type.hpp>
|
||||
#include <boost/type_traits/integral_constant.hpp>
|
||||
#include <boost/type_traits/is_base_of.hpp>
|
||||
#include <boost/type_traits/is_const.hpp>
|
||||
@ -174,13 +174,7 @@ struct trait_impl1 < Lhs, Rhs, Ret, true > {
|
||||
template < typename Lhs, typename Rhs, typename Ret >
|
||||
struct trait_impl1 < Lhs, Rhs, Ret, false > {
|
||||
BOOST_STATIC_CONSTANT(bool,
|
||||
value = (
|
||||
::boost::type_traits::ice_and<
|
||||
operator_exists < Lhs, Rhs >::value,
|
||||
operator_returns_Ret < Lhs, Rhs, Ret, operator_returns_void < Lhs, Rhs >::value >::value
|
||||
>::value
|
||||
)
|
||||
);
|
||||
value = (operator_exists < Lhs, Rhs >::value && operator_returns_Ret < Lhs, Rhs, Ret, operator_returns_void < Lhs, Rhs >::value >::value));
|
||||
};
|
||||
|
||||
// some specializations needs to be declared for the special void case
|
||||
|
@ -7,7 +7,7 @@
|
||||
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/type_traits/ice.hpp>
|
||||
#include <boost/type_traits/detail/yes_no_type.hpp>
|
||||
#include <boost/type_traits/integral_constant.hpp>
|
||||
#include <boost/type_traits/is_const.hpp>
|
||||
#include <boost/type_traits/is_fundamental.hpp>
|
||||
@ -160,13 +160,7 @@ struct trait_impl1 < Lhs, Ret, true > {
|
||||
template < typename Lhs, typename Ret >
|
||||
struct trait_impl1 < Lhs, Ret, false > {
|
||||
BOOST_STATIC_CONSTANT(bool,
|
||||
value = (
|
||||
::boost::type_traits::ice_and<
|
||||
operator_exists < Lhs >::value,
|
||||
operator_returns_Ret < Lhs, Ret, operator_returns_void < Lhs >::value >::value
|
||||
>::value
|
||||
)
|
||||
);
|
||||
value = (operator_exists < Lhs >::value && operator_returns_Ret < Lhs, Ret, operator_returns_void < Lhs >::value >::value));
|
||||
};
|
||||
|
||||
// specialization needs to be declared for the special void case
|
||||
|
@ -7,7 +7,7 @@
|
||||
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/type_traits/ice.hpp>
|
||||
#include <boost/type_traits/detail/yes_no_type.hpp>
|
||||
#include <boost/type_traits/integral_constant.hpp>
|
||||
#include <boost/type_traits/is_const.hpp>
|
||||
#include <boost/type_traits/is_fundamental.hpp>
|
||||
@ -168,13 +168,7 @@ struct trait_impl1 < Rhs, Ret, true > {
|
||||
template < typename Rhs, typename Ret >
|
||||
struct trait_impl1 < Rhs, Ret, false > {
|
||||
BOOST_STATIC_CONSTANT(bool,
|
||||
value = (
|
||||
::boost::type_traits::ice_and<
|
||||
operator_exists < Rhs >::value,
|
||||
operator_returns_Ret < Rhs, Ret, operator_returns_void < Rhs >::value >::value
|
||||
>::value
|
||||
)
|
||||
);
|
||||
value = (operator_exists < Rhs >::value && operator_returns_Ret < Rhs, Ret, operator_returns_void < Rhs >::value >::value));
|
||||
};
|
||||
|
||||
// specialization needs to be declared for the special void case
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_bit_and
|
||||
#define BOOST_TT_TRAIT_OP &
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,38 +12,38 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_bit_and_assign
|
||||
#define BOOST_TT_TRAIT_OP &=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
(\
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==fundamental and Lhs==const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_bit_or
|
||||
#define BOOST_TT_TRAIT_OP |
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,38 +12,38 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_bit_or_assign
|
||||
#define BOOST_TT_TRAIT_OP |=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==fundamental and Lhs==const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_bit_xor
|
||||
#define BOOST_TT_TRAIT_OP ^
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,38 +12,38 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_bit_xor_assign
|
||||
#define BOOST_TT_TRAIT_OP ^=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==fundamental and Lhs==const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,15 +12,15 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_complement
|
||||
#define BOOST_TT_TRAIT_OP ~
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* pointer */\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::is_pointer< Rhs_noref >::value || \
|
||||
/* fundamental non integral */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_noref >::value && \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_prefix_operator.hpp>
|
||||
|
@ -13,13 +13,13 @@
|
||||
#define BOOST_TT_TRAIT_OP *
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
/* void* or fundamental */\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_prefix_operator.hpp>
|
||||
|
@ -13,22 +13,22 @@
|
||||
#define BOOST_TT_TRAIT_OP /
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
/* pointer with pointer or fundamental */\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
)\
|
||||
)||\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,30 +12,30 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_divides_assign
|
||||
#define BOOST_TT_TRAIT_OP /=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Lhs==const and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_const< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_const< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and (Rhs==fundamental or Rhs==pointer) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
)\
|
||||
)||\
|
||||
/* Rhs==pointer and (Lhs==fundamental or Lhs==pointer) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_equal_to
|
||||
#define BOOST_TT_TRAIT_OP ==
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==pointer and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==pointer and Lhs!=base(Rhs) and Rhs!=base(Lhs) and Lhs!=void* and Rhs!=void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_not<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value,\
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(! \
|
||||
(\
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value || \
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_void< Lhs_noptr >::value || \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_greater
|
||||
#define BOOST_TT_TRAIT_OP >
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==pointer and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==pointer and Lhs!=base(Rhs) and Rhs!=base(Lhs) and Lhs!=void* and Rhs!=void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_not<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value,\
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(! \
|
||||
( \
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value || \
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_void< Lhs_noptr >::value || \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_greater_equal
|
||||
#define BOOST_TT_TRAIT_OP >=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==pointer and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==pointer and Lhs!=base(Rhs) and Rhs!=base(Lhs) and Lhs!=void* and Rhs!=void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_not<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value,\
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(! \
|
||||
( \
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value || \
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_void< Lhs_noptr >::value || \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_left_shift
|
||||
#define BOOST_TT_TRAIT_OP <<
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,38 +12,38 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_left_shift_assign
|
||||
#define BOOST_TT_TRAIT_OP <<=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==fundamental and Lhs==const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_less
|
||||
#define BOOST_TT_TRAIT_OP <
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==pointer and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==pointer and Lhs!=base(Rhs) and Rhs!=base(Lhs) and Lhs!=void* and Rhs!=void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_not<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value,\
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(! \
|
||||
( \
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value || \
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_void< Lhs_noptr >::value || \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_less_equal
|
||||
#define BOOST_TT_TRAIT_OP <=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==pointer and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==pointer and Lhs!=base(Rhs) and Rhs!=base(Lhs) and Lhs!=void* and Rhs!=void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_not<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value,\
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(! \
|
||||
( \
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value || \
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_void< Lhs_noptr >::value || \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -13,22 +13,22 @@
|
||||
#define BOOST_TT_TRAIT_OP &&
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
/* pointer with fundamental non convertible to bool */\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_convertible< Rhs_nocv, bool >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_convertible< Lhs_nocv, bool >::value >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
(\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
(! ::boost::is_convertible< Rhs_nocv, bool >::value )\
|
||||
)\
|
||||
)||\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
(! ::boost::is_convertible< Lhs_nocv, bool >::value )\
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -13,22 +13,22 @@
|
||||
#define BOOST_TT_TRAIT_OP ||
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
/* pointer with fundamental non convertible to bool */\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_convertible< Rhs_nocv, bool >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_convertible< Lhs_nocv, bool >::value >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
(\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
(! ::boost::is_convertible< Rhs_nocv, bool >::value )\
|
||||
)\
|
||||
)||\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
(! ::boost::is_convertible< Lhs_nocv, bool >::value )\
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,43 +12,43 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_minus
|
||||
#define BOOST_TT_TRAIT_OP -
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==fundamental and Rhs!=integral */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
) || \
|
||||
/* Lhs==void* and (Rhs==fundamental or Rhs==pointer) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_void< Lhs_noptr >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
)\
|
||||
) || \
|
||||
/* Rhs==void* and (Lhs==fundamental or Lhs==pointer) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::is_void< Rhs_noptr >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_void< Rhs_noptr >::value && \
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
)\
|
||||
) ||\
|
||||
/* Lhs=fundamental and Rhs=pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) ||\
|
||||
/* two different pointers */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_same< Lhs_nocv, Rhs_nocv >::value >::value\
|
||||
>::value\
|
||||
>::value
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(! ::boost::is_same< Lhs_nocv, Rhs_nocv >::value )\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,48 +12,48 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_minus_assign
|
||||
#define BOOST_TT_TRAIT_OP -=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==fundamental and Rhs!=integral */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
) || \
|
||||
/* Lhs==void* and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_void< Lhs_noptr >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==void* and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::is_void< Rhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_void< Rhs_noptr >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs=fundamental and Rhs=pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* (Lhs==fundamental or Lhs==pointer) and (Rhs==fundamental or Rhs==pointer) and (Lhs==const) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
) && \
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_modulus
|
||||
#define BOOST_TT_TRAIT_OP %
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
(\
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,38 +12,38 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_modulus_assign
|
||||
#define BOOST_TT_TRAIT_OP %=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==fundamental and Lhs==const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -13,22 +13,22 @@
|
||||
#define BOOST_TT_TRAIT_OP *
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
/* pointer with pointer or fundamental */\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
)\
|
||||
)||\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,30 +12,30 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_multiplies_assign
|
||||
#define BOOST_TT_TRAIT_OP *=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Lhs==const and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_const< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_const< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and (Rhs==fundamental or Rhs==pointer) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
)\
|
||||
)||\
|
||||
/* Rhs==pointer and (Lhs==fundamental or Lhs==pointer) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
( \
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_not_equal_to
|
||||
#define BOOST_TT_TRAIT_OP !=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==pointer and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==pointer and Lhs!=base(Rhs) and Rhs!=base(Lhs) and Lhs!=void* and Rhs!=void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::type_traits::ice_not<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value,\
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
(! \
|
||||
(\
|
||||
::boost::is_base_of< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_base_of< Rhs_noptr, Lhs_noptr >::value || \
|
||||
::boost::is_same< Lhs_noptr, Rhs_noptr >::value || \
|
||||
::boost::is_void< Lhs_noptr >::value || \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,37 +12,37 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_plus
|
||||
#define BOOST_TT_TRAIT_OP +
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==void* and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_void< Lhs_noptr >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==void* and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::is_void< Rhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_void< Rhs_noptr >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==fundamental and Rhs!=integral */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
) || \
|
||||
/* Rhs==pointer and Lhs==fundamental and Lhs!=integral */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
(! ::boost::is_integral< Lhs_noref >::value )\
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,49 +12,49 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_plus_assign
|
||||
#define BOOST_TT_TRAIT_OP +=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==void* and Rhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_void< Lhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_void< Lhs_noptr >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Rhs==void* and Lhs==fundamental */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::is_void< Rhs_noptr >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_void< Rhs_noptr >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* Lhs==pointer and Rhs==fundamental and Rhs!=integral */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
) || \
|
||||
/* Rhs==pointer and Lhs==fundamental and Lhs!=bool */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_same< Lhs_nocv, bool >::value >::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
(! ::boost::is_same< Lhs_nocv, bool >::value )\
|
||||
) || \
|
||||
/* (Lhs==fundamental or Lhs==pointer) and (Rhs==fundamental or Rhs==pointer) and (Lhs==const) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
) && \
|
||||
( \
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -14,25 +14,25 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_post_decrement
|
||||
#define BOOST_TT_TRAIT_OP --
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* bool */\
|
||||
::boost::is_same< bool, Lhs_nocv >::value,\
|
||||
::boost::is_same< bool, Lhs_nocv >::value || \
|
||||
/* void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_void< Lhs_noptr >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* (fundamental or pointer) and const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
( \
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
) && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Arrays */ \
|
||||
::boost::is_array<Lhs_noref>::value\
|
||||
>::value
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_postfix_operator.hpp>
|
||||
|
@ -14,25 +14,25 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_post_increment
|
||||
#define BOOST_TT_TRAIT_OP ++
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* bool */\
|
||||
::boost::is_same< bool, Lhs_nocv >::value,\
|
||||
::boost::is_same< bool, Lhs_nocv >::value || \
|
||||
/* void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_void< Lhs_noptr >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* (fundamental or pointer) and const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
( \
|
||||
::boost::is_fundamental< Lhs_nocv >::value || \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
) && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Arrays */ \
|
||||
::boost::is_array<Lhs_noref>::value\
|
||||
>::value
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_postfix_operator.hpp>
|
||||
|
@ -14,25 +14,25 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_pre_decrement
|
||||
#define BOOST_TT_TRAIT_OP --
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* bool */\
|
||||
::boost::is_same< bool, Rhs_nocv >::value,\
|
||||
::boost::is_same< bool, Rhs_nocv >::value || \
|
||||
/* void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* (fundamental or pointer) and const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
( \
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) && \
|
||||
::boost::is_const< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Arrays */ \
|
||||
::boost::is_array<Rhs_noref>::value\
|
||||
>::value
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_prefix_operator.hpp>
|
||||
|
@ -14,25 +14,25 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_pre_increment
|
||||
#define BOOST_TT_TRAIT_OP ++
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* bool */\
|
||||
::boost::is_same< bool, Rhs_nocv >::value,\
|
||||
::boost::is_same< bool, Rhs_nocv >::value || \
|
||||
/* void* */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Rhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Rhs_noref >::value && \
|
||||
::boost::is_void< Rhs_noptr >::value\
|
||||
>::value,\
|
||||
) || \
|
||||
/* (fundamental or pointer) and const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
( \
|
||||
::boost::is_fundamental< Rhs_nocv >::value || \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
) && \
|
||||
::boost::is_const< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Arrays */ \
|
||||
::boost::is_array<Rhs_noref>::value\
|
||||
>::value
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_prefix_operator.hpp>
|
||||
|
@ -12,32 +12,32 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_right_shift
|
||||
#define BOOST_TT_TRAIT_OP >>
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
@ -12,38 +12,38 @@
|
||||
#define BOOST_TT_TRAIT_NAME has_right_shift_assign
|
||||
#define BOOST_TT_TRAIT_OP >>=
|
||||
#define BOOST_TT_FORBIDDEN_IF\
|
||||
::boost::type_traits::ice_or<\
|
||||
(\
|
||||
/* Lhs==fundamental and Rhs==fundamental and (Lhs!=integral or Rhs!=integral) */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
::boost::type_traits::ice_or<\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Lhs_noref >::value >::value,\
|
||||
::boost::type_traits::ice_not< ::boost::is_integral< Rhs_noref >::value >::value\
|
||||
>::value\
|
||||
>::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
( \
|
||||
(! ::boost::is_integral< Lhs_noref >::value ) || \
|
||||
(! ::boost::is_integral< Rhs_noref >::value )\
|
||||
)\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Rhs==fundamental and Lhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_pointer< Lhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==pointer and Rhs==pointer */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_pointer< Lhs_noref >::value,\
|
||||
(\
|
||||
::boost::is_pointer< Lhs_noref >::value && \
|
||||
::boost::is_pointer< Rhs_noref >::value\
|
||||
>::value,\
|
||||
)||\
|
||||
/* Lhs==fundamental and Rhs==fundamental and Lhs==const */\
|
||||
::boost::type_traits::ice_and<\
|
||||
::boost::is_fundamental< Lhs_nocv >::value,\
|
||||
::boost::is_fundamental< Rhs_nocv >::value,\
|
||||
(\
|
||||
::boost::is_fundamental< Lhs_nocv >::value && \
|
||||
::boost::is_fundamental< Rhs_nocv >::value && \
|
||||
::boost::is_const< Lhs_noref >::value\
|
||||
>::value\
|
||||
>::value
|
||||
)\
|
||||
)
|
||||
|
||||
|
||||
#include <boost/type_traits/detail/has_binary_operator.hpp>
|
||||
|
Reference in New Issue
Block a user