Boost logo

Boost :

Subject: Re: [boost] [Preprocessor] Adding variadic macros support
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-11-24 08:42:21

On 24/11/2010 13:55, Edward Diener wrote:
> On 11/24/2010 3:22 AM, Mathias Gaunard wrote:
>> Variadic macros would allow to support tuples better in Boost.PP, as it
>> would not be necessary to specify the size of the tuple, and it could be
>> possible to provide other nice features around tuples.
>> Other possible applications could be to accept the sequence (a)(b, c,
>> d)(e) as being the same as (a)((b, c, d))(e).
>> If you think other things could be improved in PP with variadic macros,
>> feel free to point out where.
>> The question is: how should it be done?
>> Should the new macros be named, say, BOOST_PPV_*? Should the macros in
>> BOOST_PP_* be "overloaded" on arity (a possibility with variadic macros)
>> so as to exhibit both the old and new interface?
> Please see my variadic_macro_data library in the sandbox. I have already
> addressed the problem of uniting variadic macros with Boost PP there as
> well as providing the support for tuples which you suggest in your
> opening paragraph above.

So why hasn't there even been talk to get this reviewed or integrated
into Boost.PP?

Boost list run by bdawes at, gregod at, cpdaniel at, john at