Opened 6 years ago
Closed 5 years ago
#12817 closed Bugs (fixed)
Too strong iterator requirements in qi::parse and qi::phrase_parse
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | To Be Determined | Component: | spirit |
Version: | Boost 1.63.0 | Severity: | Problem |
Keywords: | Cc: |
Description
qi::parse and qi::phrase_parse currently check that the provided iterator type implements ForwardIterator concept. This seems to be a stronger check than necessary. In particular, ForwardIterator requires that *it returns a reference, which does not seem to be needed by the parsing functions.
I propose to replace the check with the check that the iterator type implements ReadableIterator and SinglePassIterator concepts.
Change History (3)
comment:1 by , 6 years ago
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
A possible fix: https://github.com/boostorg/spirit/pull/230