Opened 12 years ago

Closed 12 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@… 12 years ago.
fix trivial iterator invalidation problem in remove_edge_if for subgraphs

Download all attachments as: .zip

Change History (3)

by joachim.falk@…, 12 years ago

fix trivial iterator invalidation problem in remove_edge_if for subgraphs

comment:1 by Jeremiah Willcock, 12 years ago

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

comment:2 by Jeremiah Willcock, 12 years ago

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.