Use the BOOST_PP_REPEAT that does the job instead of custom macro.