Modify

Opened 6 years ago

Closed 6 years ago

#5181 closed Bugs (fixed)

iterator invalidation problem in boost subgraph remove_edge_if

Reported by: joachim.falk@… Owned by: jewillco
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@… 6 years ago.
fix trivial iterator invalidation problem in remove_edge_if for subgraphs

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by joachim.falk@…

fix trivial iterator invalidation problem in remove_edge_if for subgraphs

comment:1 Changed 6 years ago by jewillco

  • Owner changed from asutton to jewillco
  • Status changed from new to assigned

comment:2 Changed 6 years ago by jewillco

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain jewillco.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.