| 1 | #include <string>
|
|---|
| 2 | #include <boost/spirit.hpp>
|
|---|
| 3 |
|
|---|
| 4 | typedef boost::spirit::position_iterator<std::string::iterator> iter_t;
|
|---|
| 5 |
|
|---|
| 6 | std::ptrdiff_t advance = 0;
|
|---|
| 7 | //boost::iterator_difference<iter_t>::type advance = 0;
|
|---|
| 8 |
|
|---|
| 9 | void XXX( iter_t begin, iter_t end )
|
|---|
| 10 | {
|
|---|
| 11 | advance += end - begin;
|
|---|
| 12 | }
|
|---|