Joel de Guzman wrote:
sm4 wrote:
Oops - seems formatting got in the way.
Hope this is better:
Ooops, I missed your reply. Its better to post spirit related questions to spirit's mailing list. I'm re-posting this there.
Ok, this looks like a bug in handling aliases of the form: r1 %= r2; where r1 and r2 are rules with the same type. A quick workaround is to copy the rhs rule: r1 %= r2.copy(); Thus: key %= quoted_string.copy(); value %= quoted_string.copy(); Take note that this is not a problem with Spirit2x I am working on right now which should replace the current version hopefully soon. I'll get back to you for a quick fix. Anyway, in case you don't know, here's spirit's mailing list: https://lists.sourceforge.net/lists/listinfo/spirit-general Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net