
31 Jul
2012
31 Jul
'12
1:23 a.m.
Agustín K-ballo Bergé
However, I would like to get the index as a compile time value. What would be the simpler/best way to do this? Creating an iterator adaptor that keeps track of advances to the base iterator (should I be using the iterator_facade extension mechanism)? Or perhaps zipping the sequence with some kind of infinite mpl::vector_c sequence?
I would use fusion::fold with the index stored as state via a mpl::int_. Christopher