Boost logo

Boost Users :

Subject: [Boost-users] [preprocessor] How to generate list of statically-sized array elements
From: Kenny Riddile (kfriddile_at_[hidden])
Date: 2010-08-13 16:27:39

Say I have an array:

ArgumentType arguments[ argumentCount ];

where argumentCount is a size_t template parameter.

I would like to generate, at compile time, a comma-delimited list of the

arguments[0], arguments[1], arguments[2], ...arguments[argumentCount-1]

Can this be accomplished using Boost.Preprocessor or by some other method?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at