Boost logo

Boost Users :

Subject: Re: [Boost-users] typelist using mpl::list
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-09-22 12:18:55


AMDG

noman javed wrote:
> I want to implement typelist concept through mpl::list or mpl::vector. The idea is that for every call to some functor i want to store its type in a mpl::list
>
> e.g suppose we have
>
> struct A { };
> A callA() {};
>
> struct B {};
> B callB() {};
>
> main()
> {
> callA();
> callB();
>
> }
>
> this program should create a compile time mpl::list containing {B,A}. How can I implement this concept using mpl::list or mpl::vector ?
>

You can't. TMP is purely functional.

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