Opened 6 years ago

Closed 5 years ago

#12166 closed Bugs (fixed)

multi_pass_iterator comparisons should be const

Reported by: edaskel@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

Some, but not all, comparison operators of multi_pass_iterator are const. Specifically == and < are const, but !=, >, >=, and <= are not. You can see this here

This causes compile errors when multi_pass_iterator users try the common (it != end) idiom.

Change History (4)

comment:1 by Joel de Guzman, 6 years ago

Can you please file a PR for this?

comment:2 by edaskel@…, 6 years ago

PR filed, thank you.

(I fixed only != because in retrospect I could not see what operator< etc. were for, given this is a forward iterator)

comment:4 by Joel de Guzman, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.