4 Sep
2011
4 Sep
'11
10:13 a.m.
I have the following question. I want to subclass/implement a new position_iterator that recognizes lines such as:
#line 11 "electrical.lcl"
and updates accordingly its location.
My question is how to do that in the most elegant manner. Shall I copy/paste "position_iterator.hpp" and hack the increment() method? Would you, guys, use a Qi parser to recognize these lines? Maybe there is a better way...
Perhaps you'll find the following discussion useful: http://boost.2283326.n4.nabble.com/Qi-position-iterator-Equivalent-td3254592...