Boost logo

Boost Users :

Subject: Re: [Boost-users] [preprocessor] add pointer to T..
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-05-30 11:10:15


Manfred Doudar wrote:
> Thank you Joel, but how do I get the repetition across the other
> dimension? - I'm thinking I need something like a For-loop in there, so
> I get the rows of varying lengths..
>
Try:

#define MAKE_TYPE(z,n,t) BOOST_PP_CAT(T,n)*
#define MAKE_ROW(z,n,t) BOOST_PP_ENUM(n,MAKE_TYPE,~)

BOOST_PP_REPEAT(10,MAKE_ROW,~)


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