|
Boost Users : |
Subject: Re: [Boost-users] preprocessor metaprogramming question
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-20 21:02:16
AMDG
Nathan Ridge wrote:
>> Nathan Ridge wrote:
>>
>>>> MEMBERS((a)(b)(c))
>>>>
>>>>
>>> I don't suppose there's any way to have the syntax be MEMBERS(a, b, c)?
>>>
>>>
>> Not without variadic macros.
>>
>
>
> How would one do it using variadic macros?
>
I don't know, as I've never tried to use variadic macros.
There ought to be some way to figure out how many
argument you have. Once you have that, you can
use Boost.PP tuples or arrays.
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net