6 Oct
2010
6 Oct
'10
7:09 p.m.
Hi
Besides possible redundancy, why is that the fusion containers, for example fusion::vector, doesn't have a template member function to extract elements? what do you mean? .at<>() is a template member function. fusion::vector
stuff(1.2, 3, "hola"); stuff.at<2>(); //returns "hola", just like at_c<2>(stuff); at_c<N>() is from Boost.Spirit and uses .at<>() internally (i guess). Wouldn't it be more consistent with std::vector v, v[2] or v.at(2); That's not possible, because the return-type has to be known during compile-time. You can't do this with "normal" arguments. By the way, does anybody know where the name given "at_c" (I mean the '_c') comes from? Well, I guess this is for "container" ? Thank you, Alfredo Regards,
michi7x7