
21 Feb
2011
21 Feb
'11
7:46 p.m.
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