Boost logo

Boost :

Subject: Re: [boost] Review Request: Variadic Macro Data library
From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2011-02-21 14:46:02


On Mon, 21 Feb 2011 11:57:54 -0500, Lorenzo Caminiti wrote:

> Sorry if I am a bit slow and ask for clarifications. Would this work as
> follow?
>
> a) If NO_VARIADIC, PP_TUPLE_TO_SEQ always requires 2 arguments for both
> the size and the tuple -- as in PP_TUPLE_TO_SEQ(size, (...)).
>
> b) If VARIADIC instead, the same PP_TUPLE_TO_SEQ macro can either accept
> 1 argument for the tuple -- as in PP_TUPLE_TO_SEQ((...)) -- or accept 2
> arguments for both the size and the tuple as in a).
>
> Is this correct? Thanks a lot!

Yes. With variadics you can engineer it so that the size argument can be
elided.

-Paul


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