// (C) Copyright Edward Diener 2011,2012,2013 // Use, modification and distribution are subject to 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). #if !defined(BOOST_TTI_DETAIL_COMP_MEM_FUN_HPP) #define BOOST_TTI_DETAIL_COMP_MEM_FUN_HPP #include #include #include #include #include #include #include #include #if defined(__SUNPRO_CC) #define BOOST_TTI_DETAIL_TRAIT_HAS_COMP_MEMBER_FUNCTION(trait,name) \ template \ struct BOOST_PP_CAT(trait,_detail_hcmf) \ { \ template \ struct cl_type : \ lslboost::remove_const \ < \ typename BOOST_TTI_NAMESPACE::detail::class_type::type \ > \ { \ }; \ \ template \ struct helper {}; \ \ template \ static ::lslboost::type_traits::yes_type chkt(helper<&BOOST_TTI_DETAIL_TP_U::name> *); \ \ template \ static ::lslboost::type_traits::no_type chkt(...); \ \ typedef lslboost::mpl::bool_::type>(BOOST_TTI_DETAIL_NULLPTR))==sizeof(::lslboost::type_traits::yes_type)> type; \ }; \ /**/ #else #define BOOST_TTI_DETAIL_TRAIT_HAS_COMP_MEMBER_FUNCTION(trait,name) \ template \ struct BOOST_PP_CAT(trait,_detail_hcmf) \ { \ template \ struct cl_type : \ lslboost::remove_const \ < \ typename BOOST_TTI_NAMESPACE::detail::class_type::type \ > \ { \ }; \ \ template \ struct helper; \ \ template \ static ::lslboost::type_traits::yes_type chkt(helper<&BOOST_TTI_DETAIL_TP_U::name> *); \ \ template \ static ::lslboost::type_traits::no_type chkt(...); \ \ typedef lslboost::mpl::bool_::type>(BOOST_TTI_DETAIL_NULLPTR))==sizeof(::lslboost::type_traits::yes_type)> type; \ }; \ /**/ #endif #endif // BOOST_TTI_DETAIL_COMP_MEM_FUN_HPP