|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-04-03 11:57:23
Oops, forgot to update that. The property tag class needs to
define num and kind members. The num needs to be a unique integer,
and the kind needs to specify whether the property is for
edge, vertex, or graph.
struct flow_t {
enum { num = 100 };
typedef edge_property_tag kind;
};
struct capacity_t {
enum { num = 101 };
typedef edge_property_tag kind;
};
I've updated the docs in CVS.
Cheers,
Jeremy
On Tue, 3 Apr 2001, Kevin S. Van Horn wrote:
kevin_> In the graph library documentation, under "Using adjacency_list"
kevin_> (libs/graph/doc/using_adjacency_list.html), it claims that all I have to
kevin_> do to create a new internal vertex property is to define a tag
kevin_>
kevin_> struct my_vertex_property_t { };
kevin_>
kevin_> and then
kevin_>
kevin_> typedef property<my_vertex_property_t, my_property_type> VertexProperty;
kevin_> typedef adjacency_list<..., ..., ..., VertexProperty> graph_type;
kevin_>
kevin_> should define the desired graph type. However, I find that this does not
kevin_> work; I get a compiler error complaining that there is no type named
kevin_> 'kind' in 'struct my_vertex_property_t'.
kevin_>
kevin_>
kevin_>
kevin_> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
kevin_>
kevin_>
kevin_> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
kevin_>
kevin_>
kevin_>
----------------------------------------------------------------------
Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
Ph.D. Candidate email: jsiek_at_[hidden]
Univ. of Notre Dame work phone: (219) 631-3906
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk