// 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 lslboost { namespace detail { namespace indirect_traits { template struct is_reference_to_const : lslboost::false_type { }; template struct is_reference_to_const : lslboost::true_type { }; # if defined(BOOST_MSVC) && _MSC_FULL_VER <= 13102140 // vc7.01 alpha workaround template struct is_reference_to_const : lslboost::true_type { }; # endif template struct is_reference_to_function : lslboost::false_type { }; template struct is_reference_to_function : is_function { }; template struct is_pointer_to_function : lslboost::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 : lslboost::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 : lslboost::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 : lslboost::detail::if_true< is_reference_to_function::value >::template then< lslboost::false_type , is_reference_to_function_pointer_aux >::type { }; template struct is_reference_to_non_const : lslboost::integral_constant::value && !is_reference_to_const::value > { }; template struct is_reference_to_volatile : lslboost::false_type { }; template struct is_reference_to_volatile : lslboost::true_type { }; # if defined(BOOST_MSVC) && _MSC_FULL_VER <= 13102140 // vc7.01 alpha workaround template struct is_reference_to_volatile : lslboost::true_type { }; # endif template struct is_reference_to_pointer : lslboost::false_type { }; template struct is_reference_to_pointer : lslboost::true_type { }; template struct is_reference_to_pointer : lslboost::true_type { }; template struct is_reference_to_pointer : lslboost::true_type { }; template struct is_reference_to_pointer : lslboost::true_type { }; template struct is_reference_to_class : lslboost::integral_constant::value && is_class< typename remove_cv< typename remove_reference::type >::type >::value > { }; template struct is_pointer_to_class : lslboost::integral_constant::value && is_class< typename remove_cv< typename remove_pointer::type >::type >::value > { }; } using namespace indirect_traits; }} // namespace lslboost::python::detail #endif // INDIRECT_TRAITS_DWA2002131_HPP