Thanks for that answer. But as far as I see it no, Spirit.Qi is not part of boost 1.36?
At least docs do not state anything, but I can find includes for Qi. I will give it a try.
On Sat, Dec 5, 2009 at 5:33 PM, Ovanes Markarian <om_boost@keywallet.com> wrote:
which is much better tested and much faster. The same code inYou should not be using Spirit.Classic though, instead use Spirit.Qi,
Spirit.Qi is:
+((+alnum)[some_callback_func] >> "->")
Or is you just want to stuff all the strings in a vector:
std::string input("a->b->c->");
std::vector result;
parse(input.begin(),input.end(),+(+alnum >> "->"),result);
result will be an array of: ["a","b","c"]
Also, if you only want the -> to be between strings and not following, use this:
(+alnum)%"->"