Thanks, it works like a charm. Tan, Tom (Shanghai) wrote:
I have a templated class
template
class S { //... implementations }; and some stock type implementations for type U, V and W:
typedef boost::mpl::vector
u_types; typedef boost::mpl::vector u_types; typedef boost::mpl::vector w_types; I want to test class S with all possible combinations of the template arguments,
typedef boost::mpl::vector< S
, S , // ... S , > s_types; like this: boost::mpl::for_each
(test_func). The only problem is there are 2*5*5 = 50 combinations that I do not wish to type in one by one.
Is there a way to generate all the combinations with boost::mpl or Boost.Preprocessor?
Look at BOOST_PP_SEQ_FOR_EACH_PRODUCT In Christ, Steven Watanabe ***************************************