Modify

Opened 7 years ago

Closed 7 years ago

#5181 closed Bugs (fixed)

iterator invalidation problem in boost subgraph remove_edge_if

Reported by: joachim.falk@… Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc: christian.zebelein@…

Description

remove_edge_if in subgraph.hpp goes on to note that remove_edge(*ep.first, g); will invalidate ep.first but then goes on using said iterator by using continue instead of break.

Attachments (1)

subgraph-remove_edge_if.patch (275 bytes) - added by joachim.falk@… 7 years ago.
fix trivial iterator invalidation problem in remove_edge_if for subgraphs

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by joachim.falk@…

fix trivial iterator invalidation problem in remove_edge_if for subgraphs

comment:1 Changed 7 years ago by Jeremiah Willcock

Owner: changed from Andrew Sutton to Jeremiah Willcock
Status: newassigned

comment:2 Changed 7 years ago by Jeremiah Willcock

Resolution: fixed
Status: assignedclosed

(In [68781]) Changed "continue" to "break" in remove_edge_if; fixes #5181

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jeremiah Willcock.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.