Opened 6 years ago
Closed 5 years ago
#12166 closed Bugs (fixed)
multi_pass_iterator comparisons should be const
Reported by: | 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 , 6 years ago
comment:2 by , 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:3 by , 5 years ago
comment:4 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Can you please file a PR for this?