$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] generate structs with all combinations of members from a given struct
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-01-30 01:57:31
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.
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35