$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Joel de Guzman (joel_at_[hidden])
Date: 2006-08-15 22:36:46
Christian Henning wrote:
> That's work in my sample code. Thanks.
>
> But what happens if the S structs are more heterogenious? Like:
>
> struct s3
> {
> static const int num_values = 4;
>
> int i;
> float j;
> int k;
> double l;
> };
>
> I'm sure there is some mpl magic possible.
Fusion! :-)
mpl::vector_c<4> consts;
fusion::vector<int, float, int, double> vars;
fusion::joint_view<consts, vars> s3(consts, vars);
Regards,
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net