
On Wed, Oct 26, 2011 at 5:34 PM, Larry Evans
[...] shows how to do this where values in the containers are all same type. It works by simply keeping a vector of loop indices or iterators. During the operator++, it checks which which iterator to increment, and if that is at the end, then it moves to the next iterator. Dereferencing all the iterators should give 1 element in the cross product. I would think that simply changing the vector of loop indices to a fusion vector of those indices would enable the same to be done containers of different types.
Thanks for the hint. Actually I have something similar up and running based on code from stackoverflow. My problem stems from missing meta-programming skills. For example if we go for boost fusion, then how to get the value_type of the boost fusion vector corresponding to tuple<....>, etc... Best regards, Christoph