Opened 9 months ago

Last modified 9 months ago

#12817 new Bugs

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

Reported by: yegor.derevenets@… Owned by: Joel de Guzman
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.

Attachments (0)

Change History (1)

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

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Joel de Guzman.

Add Comment

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

Note: See TracTickets for help on using tickets.