Joel Falcou wrote:
You're right, that's tricky. I'll think about it as time allows. Best I have is having a state which is a pair of mpl::int and fusion::vector. Each split push_back its siblings, add the proper
Eric Niebler a écrit : placeholder to its parent and increment the placehodler # in the state. Hardest part is putting the placeholder in the parent :/
Maybe a two pass trasnform is needed ?
I was thinking along the same lines. Maybe a first transform finds all unnumbered placeholders and replaces them with monotonically increasing placeholders. The following transform does just that: http://codepad.org/A7HnOvgd. It's not what you asked for, but maybe it helps. (Tested on msvc-9.) -- Eric Niebler BoostPro Computing http://www.boostpro.com