Suppose I have two mpl lists, say
typedef boost::mpl::list<int, double> inner_types;
typedef boost::mpl::list<std::vector, std::set> outer_types;
I was hoping to be able, in a boost unit test, to iterate over the cartesian product of these lists and construct an object from each combination..something like the following:
BOOST_TEST_CASE_TEMPLATE(mytest, InnerType, inner_types, OuterType, outer_types) {
OuterType<InnerType> obj;
BOOST_CHECK(ns::foo(obj));
}
but it seems like you can only have one mpl list when using _TEMPLATE for a boost test case. Is there a way to achieve what I am intending?