Boost logo

Boost Users :

From: Chris Weed (chrisweed_at_[hidden])
Date: 2007-03-15 16:59:16


On 3/15/07, Christian Henning <chhenning_at_[hidden]> wrote:
> Hi there, subject probably sounds a bit strange but here is what I'm
> trying to accomplish.
>
> The problem description goes like this:
>
> using namespace boost;
> using namespace boost::fusion;
>
> struct A;
> struct B;
> struct C;
>
> int main()
> {
> typedef vector< A, B, C > types;
>
> // how to translates typed into the following??
>
> typedef vector< std::vector<A>, std::vector<B>, std::vector<C> >
> vector_of_types;
>
> return 0;
> }

You probably want to look at the MPL transform metafunction:
http://www.boost.org/libs/mpl/doc/refmanual/transform.html

Chris


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