Boost logo

Boost Users :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2003-08-05 00:20:08

----- Original Message -----
From: "Stephan Höfer" <yg-boost-users_at_[hidden]>
> Graph tSubGraph = g.create_subgraph();

Ah ha! You want:

Graph& tSubGraph = g.create_subgraph();

The root graph actually allocates a new child in its own memory space in
create_subgraph(), and then gives you a reference to the subgraph. What's
happening here is that subgraph is getting double-freed. Yes, we should do
something to protect against this.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at