Boost logo

Boost Users :

From: aaronyinyong (aaronyinyong_at_[hidden])
Date: 2002-10-26 01:05:23


compare the following codes:
1.First I create Graph using vecS parameter:
typedef
boost::adjacency_list<vecS,vecS,directedS,VertexProperty,EdgeProperty>
 Graph;
.....
E edge_array[num_edges]={E(0,1),E(0,2),E(0,3),E(2,3)};
boost::add_edge(edge_array[i].first,edge_array[i].second,g);
.....
This is OK!

2.Then I changed the parameter "vecS" to "listS".

typedef
boost::adjacency_list<listS,listS,directedS,VertexProperty,EdgePropert
y> Graph;
.....
E edge_array[num_edges]={E(0,1),E(0,2),E(0,3),E(2,3)};
boost::add_edge(edge_array[i].first,edge_array[i].second,g);
It can't be compiled.The VC7 tells me "int can't be converted to
void*".

So what's wrong? Is there any difference which could be caused
by "vecS" and "listS"?


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