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