
21 Jun
2010
21 Jun
'10
1:02 a.m.
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