$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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,~)