Boost logo

Boost Users :

Subject: Re: [Boost-users] Seg fault while adding 2nd edge to the graph
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2009-03-23 08:45:09

> Vertex getVertexbyId(std::string id,Graph g){

It probably has something to do with the fact that you're making a copy of
the graph. Change "Graph g" to "const Graph& g".

Andrew Sutton

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