$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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
form:
arguments[0], arguments[1], arguments[2], ...arguments[argumentCount-1]
Can this be accomplished using Boost.Preprocessor or by some other method?