Boost logo

Boost :

From: Daniel Lou (wwlou_at_[hidden])
Date: 2004-06-25 23:36:20


Hi, I wanted to set meaningful names for individual subgraphs but I failed
with the following test code....

----------------------------------------------------------------------------
---------------
 typedef adjacency_list<vecS, vecS, directedS,no_property, no_property,
  property<graph_name_t, string> > mygraph_t;

 typedef subgraph < graph_t > mysubgraph_t;

 graph_t g;
 boost::set_property(g, graph_name, "graph"); // **** this is O.K.

 mysubgraph G;
 boost::set_property(G, graph_name, "subgraph"); // **** Error C2784
 cout << boost::get_property(G, graph_name) << endl;

----------------------------------------------------------------------------
-

I use .NET 2003. The error message says:

could not deduce template argument for
'boost::adjacency_list<OutEdgeListS,VertexListS,DirectedS,VertexProperty,Edg
eProperty,GraphProperty,EdgeListS> &' from 'mysubraph_t'

Any thoughts?

Thanks,
Daniel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk