Opened 8 years ago

Last modified 8 years ago

#10707 new Bugs

Subgraph copy constructor doesn't copy all the data for children subgraphs

Reported by: 4ernov@… Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost Development Trunk Severity: Problem
Keywords: subgraph Cc:

Description

Subgraph copy constructor doesn't copy all the data required for normal working in case of the subgraph object actually represents children subgraph. As a result, copied object is not equal to original one and usually can't be used any more.

Here's the data fields that aren't copied:

  1. m_graph (is copied only in case the subgraph object represents root subgraph).
  2. m_local_vertex and m_local_edge containers (ok for root subgraph, data loss for children subgraphs).

The patch with fix is attached.

Attachments (1)

fix_copy_ctr.patch (1.2 KB ) - added by 4ernov@… 8 years ago.

Download all attachments as: .zip

Change History (2)

by 4ernov@…, 8 years ago

Attachment: fix_copy_ctr.patch added

comment:1 by Alexey Chernov <4ernov@…>, 8 years ago

Keywords: subgraph added
Note: See TracTickets for help on using tickets.