Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-01-15 14:25:39


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


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