Modify

Ticket #12817 (new Bugs)

Opened 7 weeks ago

Last modified 7 weeks 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:

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.

Attachments

Change History

comment:1 Changed 7 weeks ago by yegor.derevenets@…

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
Author


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

 
Note: See TracTickets for help on using tickets.