
11 Jul
2008
11 Jul
'08
1:15 p.m.
You can use boost::fusion::vector (or boost::tuple) as a container. You can use boost::fusion::for_each to iterate through it (there are other algorithms in fusion of course). <...> int main() { using namespace boost::fusion; vector<square, circle, triangle, square> v; for_each(v, show()); }
HTH, Roman Perepelitsa.
Correct me if i'm mistaken, but fusion::vector<some_types> contains *one* element of each some_types' type, while std::vector<boost::<variant<some_types> > > contains any number of elements of some_types, right?