8 Nov
2010
8 Nov
'10
5:36 p.m.
Nat Linden
Once upon a time, the Serialization library came with backtracking input
iterators used to parse XML input files with Spirit. I briefly glanced over more recent Serialization documentation without spotting them. Do they still exist?
Yes, in a way. Spirit only requires forward iterators, not bidi ones, like xpressive. Input iterators can be adapted to become forward ones in a fairly straightforward way, and indeed, spirit has a customizable multi_pass iterator adapter to do just that. Up until now I thought spirit to be an overkill for my stuff, but I'm considering using it now.