Boost logo

Boost Users :

Subject: [Boost-users] use boost preprocessor to generate T1 t1, T2 t2 ...
From: weiqingh (weiqingh_at_[hidden])
Date: 2012-10-26 14:41:30


hi there,

I would like to use boost preprocessor to generate something like this: (for
n from 0 to N with n = 2 in the following example)

template <typename T1, typename T2>
void foo(T1 t1, T2 t2)

I have tried to use BOOST_PP_ENUM_PARAMS but cannot figure out how to get
both T_i and t_i changed each time. is there some other macros I can use?
any help is highly appreciated.

Thanks,

--
View this message in context: http://boost.2283326.n4.nabble.com/use-boost-preprocessor-to-generate-T1-t1-T2-t2-tp4637667.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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