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
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
- 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
__
- 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
- 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 )
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
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
- 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
- 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
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
10 matches
Mail list logo