Boost logo

Boost Users :

Subject: Re: [Boost-users] generate structs with all combinations of members from a given struct
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-01-30 02:25:30


On Fri, Jan 29, 2010 at 11:57 PM, joel falcou <joel.falcou_at_[hidden]> wrote:
> Hicham Mouline wrote:
>>
>> Hello,
>>  struct params {
>>  double field1;
>>  double field2;
>>  double field3;
>>  double fiedl4;
>> };
>>  I would like to generate all the types that hold any combination of the
>> members of params.
>>
>
> Can't you like generate a fusion vector out of combination enumeration ?
>
> like having make_combo< params, vector_c<1,3,4> >
>
> ?
>
> sounds "sounder" than the macro.

Or make a fusion function called like permutation or so?


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