RE: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Aleksey Gurtovoy
Paul Mensonides wrote: > - Original Message - > From: "Aleksey Gurtovoy" <[EMAIL PROTECTED]> > > > > #define NUMBERS \ > > > (0)(1)(2)(3)(4)(5)(6)(7)(8)(9) \ > > > (10)(11)(12)(13)(14)(15)(16)(17)(18)(19) \ > > > /* ... */ > > > > > > #define RANGE(first, length) \ > > > BO

RE: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Aleksey Gurtovoy
Paul Mensonides wrote: > > For the time being, try BOOST_PP_SEQ_FIRST_N. If that > > doesn't work for now, I'll get on it immediately. > > Both of these were broken, but I fixed them. Yep, it works now. Thanks, Paul! > Let me know if you encounter any other problems. Sure :) Aleksey

Re: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Paul Mensonides
- Original Message - From: "Paul Mensonides" <[EMAIL PROTECTED]> > For the time being, try BOOST_PP_SEQ_FIRST_N. If that doesn't work for now, > I'll get on it immediately. Both of these were broken, but I fixed them. Let me know if you encounter any other problems. Paul Mensonides __

Re: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Paul Mensonides
- Original Message - From: "Aleksey Gurtovoy" <[EMAIL PROTECTED]> > > BOOST_PP_SEQ_FOLD_LEFT(AUX_MAX_ARITY_OP, -1, RANGE(0, 5)) > > Hmm, it doesn't work on Metrowerks 8.3: the compiler chokes on preprocessing [...] > Is it a known failure? It would be nice to have some tests for the SEQ

Re: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Paul Mensonides
- Original Message - From: "Aleksey Gurtovoy" <[EMAIL PROTECTED]> > > #define NUMBERS \ > > (0)(1)(2)(3)(4)(5)(6)(7)(8)(9) \ > > (10)(11)(12)(13)(14)(15)(16)(17)(18)(19) \ > > /* ... */ > > > > #define RANGE(first, length) \ > > BOOST_PP_SEQ_SUBSEQ( NUMBERS, first, length )

RE: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Aleksey Gurtovoy
Paul Mensonides wrote: > #include > #include > > #define NUMBERS \ > (0)(1)(2)(3)(4)(5)(6)(7)(8)(9) \ > (10)(11)(12)(13)(14)(15)(16)(17)(18)(19) \ > /* ... */ > > #define RANGE(first, length) \ > BOOST_PP_SEQ_SUBSEQ( NUMBERS, first, length ) \ > /**/ > > BOOST_PP_SEQ_FOLD_L

RE: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Aleksey Gurtovoy
Paul Mensonides wrote: > Hi Aleksey, Hi Paul, > > > I am going to use our wonderful Preprocessor library to generate a > > metafunction that basically looks like this: > > [...] > > > I love everything about it except for the "(0, (1, (2, (3, (4, > > BOOST_PP_NIL)" part. I would like the a

Re: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Paul Mensonides
- Original Message - From: "Paul Mensonides" <[EMAIL PROTECTED]> [...] > This one is certainly possible. However, "BOOST_PP_RANGE_FOLD_LEFT" would > just be a synonym for whatever folding macro operates on the type generated > by "BOOST_PP_RANGE." It would be to difficult to make a para

Re: [boost] BOOST_PP_RANGE?

2003-01-01 Thread Paul Mensonides
- Original Message - From: "Aleksey Gurtovoy" <[EMAIL PROTECTED]> Hi Aleksey, > I am going to use our wonderful Preprocessor library to generate a > metafunction that basically looks like this: [...] > I love everything about it except for the "(0, (1, (2, (3, (4, > BOOST_PP_NIL)" p

[boost] BOOST_PP_RANGE?

2003-01-01 Thread Aleksey Gurtovoy
I am going to use our wonderful Preprocessor library to generate a metafunction that basically looks like this: template< int C0, int C1, ..., int Cn > struct max_arity { static int const value = Cn > 0 ? Cn : ( Cn-1 > 0 ? Cn-1 : ... ( C1 > 0 ? C1