
15 Jan
2008
15 Jan
'08
12:25 p.m.
AMDG Hicham Mouline wrote:
I realize my question was not complete! Is it possible to write the 3 x 3 x 3 explicit instantiations, not with 27 lines of code, but perhaps in some kind of loop?
#include <boost/preprocessor/seq/for_each_product.hpp> #include <boost/preprocessor/seq/enum.hpp> #define PARAMS (FLAT)(CURVE1D)(CURVE2D) #define M(r, x) template class TIP<BOOST_PP_SEQ_ENUM(x)> {}; BOOST_PP_SEQ_FOR_EACH_PRODUCT(M, (PARAMS)(PARAMS)(PARAMS)) In Christ, Steven Watanabe