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.

Change History (1)

comment:1 by pgerell, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=1463711

This was already fixed in CVS
Note: See TracTickets for help on using tickets.