Ticket #12817 (new Bugs)

Opened 4 months ago

Last modified 4 months ago

Too strong iterator requirements in qi::parse and qi::phrase_parse

Reported by: yegor.derevenets@… Owned by: djowel
Milestone: To Be Determined Component: spirit
Version: Boost 1.63.0 Severity: Problem
Keywords: Cc:


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

comment:1 Changed 4 months ago by yegor.derevenets@…


Add a comment

Modify Ticket

Change Properties
<Author field>
as new

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.