| 1 | #include <string>
|
|---|
| 2 | #include <boost/spirit.hpp>
|
|---|
| 3 | #include <iostream>
|
|---|
| 4 |
|
|---|
| 5 | typedef boost::spirit::position_iterator<std::string::iterator> iter_t;
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 | int main() {
|
|---|
| 9 | std::string test("test");
|
|---|
| 10 | iter_t begin(test.begin(), test.end());
|
|---|
| 11 | iter_t end;
|
|---|
| 12 | std::cout<<(end - begin)<<"\n";
|
|---|
| 13 | }
|
|---|