Boost logo

Boost Users :

Subject: [Boost-users] Subclassing "position_iterator"
From: Alexander Feldman (alex_at_[hidden])
Date: 2011-09-04 04:44:30


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


-- Alex

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at