[program_options]Iterator decremented past begin of container

28 Feb
2006
28 Feb
'06
12:29 p.m.
Hi, I have filed the following bug in the SF tracker. 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 debug/checked iterators. /Peter

28 Feb
28 Feb
12:39 p.m.
New subject: [program_options]Iterator decremented past begin ofcontainer
I just realized that this is already fixed in CVS. Thanks, Peter
7071
Age (days ago)
7071
Last active (days ago)
1 comments
2 participants
participants (2)
-
Peter Gerell