
But once I have my mpl::vector or fusion::vector, how do i apply a meta function like for_each to generate the class members automatically. for e.g., I define the vector<> with 15 elements, I should be able to have 15 member types in the class, without manually writing at_c<0> .... at_c<1>? I'm now looking again at mpl::inherit_linearly rds,
----- Original Message ----- From: "Juraj IvanÄiÄ"
To: boost-users@lists.boost.org Subject: Re: [Boost-users] Generating a large number of class member variables: PP vs mpl Date: Tue, 20 Jan 2009 11:03:56 +0100 Hicham Mouline wrote:
Is it possible to generate the members from the mpl::vector<> ?
It is certainly possible and is already done in Boost.Fusion.
See http://www.boost.org/doc/libs/1_37_0/libs/fusion/doc/html/index.html and especially http://www.boost.org/doc/libs/1_37_0/libs/fusion/doc/html/fusion/container.h...
HTH, Juraj