
28 Mar
2006
28 Mar
'06
5:40 p.m.
From: Yuval Ronen [mailto:ronen_yuval@yahoo.com]
Is there a meta-function that creates a tuple type which contains the types contained in a type-sequence? (I'm talking about a similar thing to variant's make_variant_over).
We use a generator like this:
template<typename Typelist>
struct TupleGen
: boost::mpl::reverse_fold<
Typelist, boost::tuples::null_type,
boost::tuples::cons