// Copyright David Abrahams 2002. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef INDIRECT_TRAITS_DWA2002131_HPP # define INDIRECT_TRAITS_DWA2002131_HPP # include # include # include # include # include # include # include # include # include # include # include # include # include # include namespace boost { namespace detail { namespace indirect_traits { template struct is_reference_to_const : boost::false_type { }; template struct is_reference_to_const : boost::true_type { }; # if defined(BOOST_MSVC) && _MSC_FULL_VER <= 13102140 // vc7.01 alpha workaround template struct is_reference_to_const : boost::true_type { }; # endif template struct is_reference_to_function : boost::false_type { }; template struct is_reference_to_function : is_function { }; template struct is_pointer_to_function : boost::false_type { }; // There's no such thing as a pointer-to-cv-function, so we don't need // specializations for those template struct is_pointer_to_function : is_function { }; template struct is_reference_to_member_function_pointer_impl : boost::false_type { }; template struct is_reference_to_member_function_pointer_impl : is_member_function_pointer::type> { }; template struct is_reference_to_member_function_pointer : is_reference_to_member_function_pointer_impl { }; template struct is_reference_to_function_pointer_aux : boost::integral_constant::value && is_pointer_to_function< typename remove_cv< typename remove_reference::type >::type >::value > { // There's no such thing as a pointer-to-cv-function, so we don't need specializations for those }; template struct is_reference_to_function_pointer : boost::detail::if_true< is_reference_to_function::value >::template then< boost::false_type , is_reference_to_function_pointer_aux >::type { }; template struct is_reference_to_non_const : boost::integral_constant::value && !is_reference_to_const::value > { }; template struct is_reference_to_volatile : boost::false_type { }; template struct is_reference_to_volatile : boost::true_type { }; # if defined(BOOST_MSVC) && _MSC_FULL_VER <= 13102140 // vc7.01 alpha workaround template struct is_reference_to_volatile : boost::true_type { }; # endif template struct is_reference_to_pointer : boost::false_type { }; template struct is_reference_to_pointer : boost::true_type { }; template struct is_reference_to_pointer : boost::true_type { }; template struct is_reference_to_pointer : boost::true_type { }; template struct is_reference_to_pointer : boost::true_type { }; template struct is_reference_to_class : boost::integral_constant::value && is_class< typename remove_cv< typename remove_reference::type >::type >::value > { }; template struct is_pointer_to_class : boost::integral_constant::value && is_class< typename remove_cv< typename remove_pointer::type >::type >::value > { }; } using namespace indirect_traits; }} // namespace boost::python::detail #endif // INDIRECT_TRAITS_DWA2002131_HPP