Boost logo

Boost Users :

From: Stephen torri (storri_at_[hidden])
Date: 2004-11-08 00:10:54


What is the best method for storing a type in a boost graph vertex? By
value or pointer? I have the following graph type:

typedef property< vertex_index_t, uint32_t,
property< vertex_name_t, boost::shared_ptr<Component> > >
VertexProperty;

typedef adjacency_list<setS, // OutEdgeList
                       setS, // VertexList
                       directedS, // Directed
                       VertexProperty> // VertexProperties
Graph_Type;

The Component is a class. I thought it was best to store it in the
vertex as a pointer. Is this going to cause me trouble?

Stephen

-- 
Email: storri_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