diff --git a/include/boost/python/detail/indirect_traits.hpp b/include/boost/python/detail/indirect_traits.hpp index b1883cd3..c16cb783 100644 --- a/include/boost/python/detail/indirect_traits.hpp +++ b/include/boost/python/detail/indirect_traits.hpp @@ -172,24 +172,6 @@ struct is_reference_to_pointer : mpl::true_ { }; -template -struct is_reference_to_classx -{ - BOOST_STATIC_CONSTANT( - bool, value - = (boost::type_traits::ice_and< - is_reference::value - , is_class< - typename remove_cv< - typename remove_reference::type - >::type - >::value - >::value) - ); - typedef mpl::bool_ type; - BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_reference_to_class,(T)) -}; - template struct is_reference_to_class : mpl::and_< @@ -212,6 +194,24 @@ struct is_reference_to_class { }; +template +struct is_reference_to_classx +{ + BOOST_STATIC_CONSTANT( + bool, value + = (boost::type_traits::ice_and< + is_reference::value + , is_class< + typename remove_cv< + typename remove_reference::type + >::type + >::value + >::value) + ); + typedef mpl::bool_ type; + BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_reference_to_class,(T)) +}; + template struct is_pointer_to_class : mpl::and_<