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
andrew.n.sutton_at_[hidden]



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net