Boost logo

Boost Users :

Subject: Re: [Boost-users] Subclassing "position_iterator"
From: Igor R (boost.lists_at_[hidden])
Date: 2011-09-04 06:13:47


> 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.html


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net