Boost logo

Boost :

Subject: Re: [boost] [preprocessor] [config] Support for variadic macros
From: Edward Diener (eldiener_at_[hidden])
Date: 2010-08-07 18:47:09


On 8/7/2010 4:07 PM, Paul Mensonides wrote:
> On 8/7/2010 6:35 AM, Edward Diener wrote:
>
>> If Boost had a configuration macro indicating which compilers support
>> variadic macros, would this help the preprocessor library any in
>> implementing functionality ? Or do you see implementing certain
>> preprocessor functionality for only the subset of compilers that support
>> variadic macros not worthwhile ?
>
> I wouldn't say "not worthwhile", but the variadic support would be
> minimal unless large chunks of the API are designed for it. What I
> noticed when writing Chaos is that to really get the benefits of
> variadics, you need to alter the a lot of stuff. Specifically, in how it
> relates to compatibility, you need to alter parameter orders all over
> the place since the set of variadic arguments are always the last.
>
> Regards,
> Paul Mensonides
>

That's totally understandable. Some time in the future, perhaps after
the next version of C++ becomes official, all compilers will support
variadic macros.

Still I would like to see a Boost config macro which can be used to
determine now if a particular compiler supports variadic macros.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk