Christian Henning wrote:
Hi Joel,
Oops, that should be
typedef mpl::vector_c
consts_type; typedef fusion::vector vars_type; vars_type vars; fusion::joint_view
s3(consts_type(), vars); Anyway, I'm sure you got the point. With our 's3' above, we can, for exemple, write (using boost::lambda):
fusion::for_each(s3, cout << _1 << endl);
to print all the items.
I just tried your suggestion and it works until the fusion::for_each() call. There, I get a million compiler errors. I'm sure I'm must missing something simple here.
This is what I'm doing:
[snip code]
My mistake. The code should be:
typedef mpl::vector_c
When I got the CVS head there was no fusion documentation included. Is that correct?
It's there now. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net