PP: transform BOOST_PP_SEQ_FOR_EACH(macro, data, seq) to vertical repetition
Hi, For a given result of BOOST_PP_SEQ_FOR_EACH(macro,data,seq) It is possible to obtain the same result, but in vertical repetition instead, with: #define BOOST_PP_LOCAL_MACRO(n) macro(_,data, BOOST_PP_SEQ_ELEM(n, seq)) #define BOOST_PP_LOCAL_LIMITS (0,BOOST_PP_DEC( BOOST_PP_SEQ_SIZE(seq))) #include BOOST_PP_LOCAL_ITERATE() I can't see the way to implement a new macro called BOOST_PP_SEQ_FOR_EACH_VERTICAL(macro,data,seq) Regards,
Hicham Mouline wrote:
I can’t see the way to implement a new macro called
BOOST_PP_SEQ_FOR_EACH_VERTICAL(macro,data,seq)
You can't have #define or # incldue INSIDE another macro -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
participants (2)
-
Hicham Mouline
-
joel falcou