Subject: [Boost-bugs] [Boost C++ Libraries] #3235: position_iterator and skip parser
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-30 07:54:55
#3235: position_iterator and skip parser
----------------------------------+-----------------------------------------
Reporter: olafvdspek@⦠| Owner: djowel
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: spirit
Version: Boost 1.39.0 | Severity: Problem
Keywords: |
----------------------------------+-----------------------------------------
This prints 1 while the error is on line 2.
{{{
#include <boost/spirit/include/classic.hpp>
#include <cassert>
#include <iostream>
using namespace boost::spirit::classic;
using namespace std;
int main()
{
typedef position_iterator<const char*> iterator_t;
const char* str = "1\nA";
parse_info<iterator_t> info = parse(iterator_t(str, str +
strlen(str)), iterator_t(), int_p >> !end_p, space_p);
cout << info.stop.get_position().line << endl;
return 0;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3235> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC