
6 Oct
2010
6 Oct
'10
6:56 p.m.
Hi, Excuse my simple minded questions. Sometimes by asking this question (often with negative answer) I understand more on the design of the Boost libraries. Besides possible redundancy, why is that the fusion containers, for example fusion::vector, doesn't have a template member function to extract elements? fusion::vector<double, int, std::string> stuff(1.2, 3, "hola"); stuff.at<2>(); //returns "hola", just like at_c<2>(stuff); Wouldn't it be more consistent with std::vector v, v[2] or v.at(2); By the way, does anybody know where the name given "at_c" (I mean the '_c') comes from? Thank you, Alfredo