20 Aug
2009
20 Aug
'09
8:42 p.m.
I use a position_iterator
for parsing with boost::spirit. Because I need the regex_p feature, I have to wrap this iterator using a multi_pass iterator.
I call pt_parse and get a
boost::spirit::tree_parse_info
>, ...> parse_info. Now I have problems calling the get_position() method on "parse_info.stop".
I guess this is the case because multi_pass does not store my iterator but wraps it using boost::iterator which loses the position features of position_iterators and only keeps the const char* pointer.
Do you have an advice for me?
It's difficult to tell from here as you didn't provide too much information. Would you mind posting a small example exposing your problem? Regards Hartmut