Boost logo

Boost :

Subject: Re: [boost] Alternative implementation for BOOST_PP_VARIADIC_SIZE
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2011-11-13 10:44:51


Paul Mensonides <pmenso57 <at> comcast.net> writes:
> Regardless, the scenario here is fundamentally wrong-headed. A macro
> argument may be empty, but that does not change the number of arguments.
> E.g.
>
> #define A(...)
>
> A() // one argument (*not* zero arguments)
> B(,) // two arguments
> C(,,) // three arguments

This is all very theoretical. In practice I want for A() to indicate that it has
zero arguments and A(b) that it has one, even though former is just later with
empty b. Any other size logic would be very confusing.

Gennadiy


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