Boost logo

Boost Users :

Subject: [Boost-users] boost.pp : generate a const size_t array initializer
From: Hicham Mouline (hicham_at_[hidden])
Date: 2009-08-12 07:05:38


Hello,

I have
const size_t MaxNumber = 16;

Can I generate this:
const size_t elts[MaxNumber] = {0, 1, ..., 15};

with Boost.PP?

I suppose I need to #define MaxNumber for PP?

Regards,


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