Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:31:08

0001 /*=============================================================================
0002     Copyright (c) 2010-2011 Christopher Schmidt
0003 
0004     Distributed under the Boost Software License, Version 1.0. (See accompanying
0005     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 ==============================================================================*/
0007 
0008 #ifndef BOOST_FUSION_ADAPTED_STRUCT_DEFINE_STRUCT_HPP
0009 #define BOOST_FUSION_ADAPTED_STRUCT_DEFINE_STRUCT_HPP
0010 
0011 #include <boost/fusion/support/config.hpp>
0012 #include <boost/fusion/adapted/struct/adapt_struct.hpp>
0013 #include <boost/fusion/adapted/struct/detail/define_struct.hpp>
0014 #include <boost/preprocessor/cat.hpp>
0015 
0016 #define BOOST_FUSION_DEFINE_TPL_STRUCT(                                         \
0017     TEMPLATE_PARAMS_SEQ, NAMESPACE_SEQ, NAME, ATTRIBUTES)                       \
0018                                                                                 \
0019     BOOST_FUSION_DEFINE_TPL_STRUCT_IMPL(                                        \
0020         TEMPLATE_PARAMS_SEQ,                                                    \
0021         (0)NAMESPACE_SEQ,                                                       \
0022         NAME,                                                                   \
0023         BOOST_PP_CAT(BOOST_FUSION_DEFINE_STRUCT_FILLER_0(0,0)ATTRIBUTES,_END),  \
0024         2)                                                                      \
0025                                                                                 \
0026     BOOST_FUSION_ADAPT_TPL_STRUCT(                                              \
0027         TEMPLATE_PARAMS_SEQ,                                                    \
0028         (BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ) NAME)\
0029             TEMPLATE_PARAMS_SEQ,                                                \
0030         ATTRIBUTES)
0031 
0032 #define BOOST_FUSION_DEFINE_STRUCT(NAMESPACE_SEQ, NAME, ATTRIBUTES)             \
0033     BOOST_FUSION_DEFINE_STRUCT_IMPL(                                            \
0034         (0)NAMESPACE_SEQ,                                                       \
0035         NAME,                                                                   \
0036         BOOST_PP_CAT(BOOST_FUSION_DEFINE_STRUCT_FILLER_0(0,0)ATTRIBUTES,_END),  \
0037         2)                                                                      \
0038                                                                                 \
0039     BOOST_FUSION_ADAPT_STRUCT(                                                  \
0040         BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION((0)NAMESPACE_SEQ) NAME, \
0041         ATTRIBUTES)
0042 
0043 #endif