
26 Nov
2008
26 Nov
'08
6:07 p.m.
I've noticed an inconsistency with how the preprocessor library handles integer ranges. Consider this: #define M0(Z,N,DATA) N BOOST_PP_REPEAT_FROM_TO(1,3,M0,~) This treats the range 1,3 as half-open. It generates the sequence "1 2". But consider this: #define BOOST_PP_LOCAL_MACRO(N) N #define BOOST_PP_LOCAL_LIMITS (1,3) #include BOOST_PP_LOCAL_ITERATE() This treats the range 1,3 as closed. It generates the sequence "1 2 3". Why the difference? -- Eric Niebler BoostPro Computing http://www.boostpro.com