Boost C++ Libraries: Ticket #7507: BGL subgraph copy constructor buggy https://svn.boost.org/trac10/ticket/7507 <p> Hello, </p> <p> I store subgraph objects in a std::list. </p> <p> After this, most of the data contained in subgraphs are lost. </p> <p> Attached is a minimalist code that creates a root graph and two childen, and then displays them directly, then insert them into a (copy-on-write) list, then displays them again. </p> <p> The root redisplays too much, and children lose data. </p> <p> I am on MacOSX with gcc 6; maybe on other platforms the copy would not happen, since I don't modify the graphs between insertion and display. </p> <p> Here is my output: </p> <pre class="wiki"> From the stack: (root) graph: 6(0,2) 4(1,2) num_edges= 2 subgraph: 0(0,1) num_edges= 1 subgraph: 0(0,1) num_edges= 1 From list: graph: 0(0,1) 1(1,2) 2(1,3) 6(2,5) 3(4,1) 4(4,5) 5(5,3) num_edges= 7 graph: num_edges= 0 graph: num_edges= 0 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7507 Trac 1.4.3 Amyn Bennamane <amynbe@…> Mon, 15 Oct 2012 14:47:01 GMT attachment set https://svn.boost.org/trac10/ticket/7507 https://svn.boost.org/trac10/ticket/7507 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bglcowtest.cpp</span> </li> </ul> <p> BGL subgraph copy constructor bug sample </p> Ticket Amyn Bennamane <amynbe@…> Tue, 16 Oct 2012 08:59:02 GMT <link>https://svn.boost.org/trac10/ticket/7507#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7507#comment:1</guid> <description> <p> I am using gcc 4.2.1, not 6 </p> </description> <category>Ticket</category> </item> </channel> </rss>