1 Aug
2012
1 Aug
'12
7:40 p.m.
On 30/07/2012 10:23 p.m., Christopher Schmidt wrote:
Agustín K-ballo Bergé
writes: 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_.
Simple enough! I hadn't considered the possibility of changing the State type from invocation to invocation. Thank you. Agustín K-ballo Bergé.- http://fusionfenix.com