Ticket #2669: test-iter.cpp

File test-iter.cpp, 271 bytes (added by S Roderick <kiwi.net@…>, 14 years ago)
Line 
1#include <string>
2#include <boost/spirit.hpp>
3
4typedef boost::spirit::position_iterator<std::string::iterator> iter_t;
5
6std::ptrdiff_t advance = 0;
7//boost::iterator_difference<iter_t>::type advance = 0;
8
9void XXX( iter_t begin, iter_t end )
10{
11 advance += end - begin;
12}