annotate DEPENDENCIES/generic/include/boost/tti/detail/dcomp_mem_fun.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1
Chris@16 2 // (C) Copyright Edward Diener 2011,2012,2013
Chris@16 3 // Use, modification and distribution are subject to the Boost Software License,
Chris@16 4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 5 // http://www.boost.org/LICENSE_1_0.txt).
Chris@16 6
Chris@16 7 #if !defined(BOOST_TTI_DETAIL_COMP_MEM_FUN_HPP)
Chris@16 8 #define BOOST_TTI_DETAIL_COMP_MEM_FUN_HPP
Chris@16 9
Chris@16 10 #include <boost/config.hpp>
Chris@16 11 #include <boost/mpl/bool.hpp>
Chris@16 12 #include <boost/preprocessor/cat.hpp>
Chris@16 13 #include <boost/tti/detail/dftclass.hpp>
Chris@16 14 #include <boost/tti/detail/dnullptr.hpp>
Chris@16 15 #include <boost/tti/gen/namespace_gen.hpp>
Chris@16 16 #include <boost/type_traits/remove_const.hpp>
Chris@16 17 #include <boost/type_traits/detail/yes_no_type.hpp>
Chris@16 18
Chris@101 19 #if defined(__SUNPRO_CC)
Chris@101 20
Chris@101 21 #define BOOST_TTI_DETAIL_TRAIT_HAS_COMP_MEMBER_FUNCTION(trait,name) \
Chris@101 22 template<class BOOST_TTI_DETAIL_TP_T> \
Chris@101 23 struct BOOST_PP_CAT(trait,_detail_hcmf) \
Chris@101 24 { \
Chris@101 25 template<class BOOST_TTI_DETAIL_TP_F> \
Chris@101 26 struct cl_type : \
Chris@101 27 boost::remove_const \
Chris@101 28 < \
Chris@101 29 typename BOOST_TTI_NAMESPACE::detail::class_type<BOOST_TTI_DETAIL_TP_F>::type \
Chris@101 30 > \
Chris@101 31 { \
Chris@101 32 }; \
Chris@101 33 \
Chris@101 34 template<BOOST_TTI_DETAIL_TP_T> \
Chris@101 35 struct helper {}; \
Chris@101 36 \
Chris@101 37 template<class BOOST_TTI_DETAIL_TP_U> \
Chris@101 38 static ::boost::type_traits::yes_type chkt(helper<&BOOST_TTI_DETAIL_TP_U::name> *); \
Chris@101 39 \
Chris@101 40 template<class BOOST_TTI_DETAIL_TP_U> \
Chris@101 41 static ::boost::type_traits::no_type chkt(...); \
Chris@101 42 \
Chris@101 43 typedef boost::mpl::bool_<sizeof(chkt<typename cl_type<BOOST_TTI_DETAIL_TP_T>::type>(BOOST_TTI_DETAIL_NULLPTR))==sizeof(::boost::type_traits::yes_type)> type; \
Chris@101 44 }; \
Chris@101 45 /**/
Chris@101 46
Chris@101 47 #else
Chris@101 48
Chris@16 49 #define BOOST_TTI_DETAIL_TRAIT_HAS_COMP_MEMBER_FUNCTION(trait,name) \
Chris@16 50 template<class BOOST_TTI_DETAIL_TP_T> \
Chris@16 51 struct BOOST_PP_CAT(trait,_detail_hcmf) \
Chris@16 52 { \
Chris@16 53 template<class BOOST_TTI_DETAIL_TP_F> \
Chris@16 54 struct cl_type : \
Chris@16 55 boost::remove_const \
Chris@16 56 < \
Chris@16 57 typename BOOST_TTI_NAMESPACE::detail::class_type<BOOST_TTI_DETAIL_TP_F>::type \
Chris@16 58 > \
Chris@16 59 { \
Chris@16 60 }; \
Chris@16 61 \
Chris@16 62 template<BOOST_TTI_DETAIL_TP_T> \
Chris@16 63 struct helper; \
Chris@16 64 \
Chris@16 65 template<class BOOST_TTI_DETAIL_TP_U> \
Chris@16 66 static ::boost::type_traits::yes_type chkt(helper<&BOOST_TTI_DETAIL_TP_U::name> *); \
Chris@16 67 \
Chris@16 68 template<class BOOST_TTI_DETAIL_TP_U> \
Chris@16 69 static ::boost::type_traits::no_type chkt(...); \
Chris@16 70 \
Chris@101 71 typedef boost::mpl::bool_<sizeof(chkt<typename cl_type<BOOST_TTI_DETAIL_TP_T>::type>(BOOST_TTI_DETAIL_NULLPTR))==sizeof(::boost::type_traits::yes_type)> type; \
Chris@16 72 }; \
Chris@16 73 /**/
Chris@16 74
Chris@101 75 #endif
Chris@101 76
Chris@101 77
Chris@16 78 #endif // BOOST_TTI_DETAIL_COMP_MEM_FUN_HPP