Opened 17 years ago
Closed 17 years ago
#572 closed Bugs (None)
[program_options]Iterator decremented past begin
Reported by: | pgerell | Owned by: | nobody |
---|---|---|---|
Milestone: | Component: | None | |
Version: | None | Severity: | |
Keywords: | Cc: |
Description
In format_paragraph the following code appears: string::const_iterator line_begin = par.begin(); <snip> string::const_iterator last_space = find(reverse_iterator<string::const_iterator>(line_end - 1), reverse_iterator<string::const_iterator>(line_begin - 1), ' ') .base(); This generates a run-time assertion if compiled with VC8 and iterators.
Note:
See TracTickets
for help on using tickets.