File indexing completed on 2025-01-18 09:41:37
0001
0002 #ifndef BOOST_MPL_AUX_PREPROCESSOR_ADD_HPP_INCLUDED
0003 #define BOOST_MPL_AUX_PREPROCESSOR_ADD_HPP_INCLUDED
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include <boost/mpl/aux_/config/preprocessor.hpp>
0018
0019 #if !defined(BOOST_MPL_CFG_NO_OWN_PP_PRIMITIVES)
0020
0021 # include <boost/mpl/aux_/preprocessor/tuple.hpp>
0022
0023 #if defined(BOOST_MPL_CFG_BROKEN_PP_MACRO_EXPANSION)
0024 # include <boost/preprocessor/cat.hpp>
0025
0026 # define BOOST_MPL_PP_ADD(i,j) \
0027 BOOST_MPL_PP_ADD_DELAY(i,j) \
0028
0029
0030 # define BOOST_MPL_PP_ADD_DELAY(i,j) \
0031 BOOST_PP_CAT(BOOST_MPL_PP_TUPLE_11_ELEM_##i,BOOST_MPL_PP_ADD_##j) \
0032
0033 #else
0034 # define BOOST_MPL_PP_ADD(i,j) \
0035 BOOST_MPL_PP_ADD_DELAY(i,j) \
0036
0037
0038 # define BOOST_MPL_PP_ADD_DELAY(i,j) \
0039 BOOST_MPL_PP_TUPLE_11_ELEM_##i BOOST_MPL_PP_ADD_##j \
0040
0041 #endif
0042
0043 # define BOOST_MPL_PP_ADD_0 (0,1,2,3,4,5,6,7,8,9,10)
0044 # define BOOST_MPL_PP_ADD_1 (1,2,3,4,5,6,7,8,9,10,0)
0045 # define BOOST_MPL_PP_ADD_2 (2,3,4,5,6,7,8,9,10,0,0)
0046 # define BOOST_MPL_PP_ADD_3 (3,4,5,6,7,8,9,10,0,0,0)
0047 # define BOOST_MPL_PP_ADD_4 (4,5,6,7,8,9,10,0,0,0,0)
0048 # define BOOST_MPL_PP_ADD_5 (5,6,7,8,9,10,0,0,0,0,0)
0049 # define BOOST_MPL_PP_ADD_6 (6,7,8,9,10,0,0,0,0,0,0)
0050 # define BOOST_MPL_PP_ADD_7 (7,8,9,10,0,0,0,0,0,0,0)
0051 # define BOOST_MPL_PP_ADD_8 (8,9,10,0,0,0,0,0,0,0,0)
0052 # define BOOST_MPL_PP_ADD_9 (9,10,0,0,0,0,0,0,0,0,0)
0053 # define BOOST_MPL_PP_ADD_10 (10,0,0,0,0,0,0,0,0,0,0)
0054
0055 #else
0056
0057 # include <boost/preprocessor/arithmetic/add.hpp>
0058
0059 # define BOOST_MPL_PP_ADD(i,j) \
0060 BOOST_PP_ADD(i,j) \
0061
0062
0063 #endif
0064
0065 #endif