ddata.hpp 1.0 KB

1234567891011121314151617181920212223242526272829
  1. // (C) Copyright Edward Diener 2012,2013
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #if !defined(BOOST_TTI_DETAIL_DATA_HPP)
  6. #define BOOST_TTI_DETAIL_DATA_HPP
  7. #include <boost/mpl/or.hpp>
  8. #include <boost/preprocessor/cat.hpp>
  9. #include <boost/tti/detail/dmem_data.hpp>
  10. #include <boost/tti/detail/dstatic_mem_data.hpp>
  11. #define BOOST_TTI_DETAIL_TRAIT_HAS_DATA(trait,name) \
  12. BOOST_TTI_DETAIL_TRAIT_HAS_MEMBER_DATA(trait,name) \
  13. BOOST_TTI_DETAIL_TRAIT_HAS_STATIC_MEMBER_DATA(trait,name) \
  14. template<class BOOST_TTI_DETAIL_TP_ET,class BOOST_TTI_DETAIL_TP_DT> \
  15. struct BOOST_PP_CAT(trait,_detail_hd) : \
  16. boost::mpl::or_ \
  17. < \
  18. BOOST_PP_CAT(trait,_detail_hmd_with_enclosing_class)<BOOST_TTI_DETAIL_TP_ET,BOOST_TTI_DETAIL_TP_DT>, \
  19. BOOST_PP_CAT(trait,_detail_hsd)<BOOST_TTI_DETAIL_TP_ET,BOOST_TTI_DETAIL_TP_DT> \
  20. > \
  21. { \
  22. }; \
  23. /**/
  24. #endif // BOOST_TTI_DETAIL_DATA_HPP