Hi<br>I tried to compile this example: <br><br>typedef boost::adjacency_list <boost::listS,boost::listS,boost::undirectedS,vertex_descriptor > Graph;<br> typedef boost::graph_traits<Graph>::vertex_descriptor v_des;<br> typedef boost::graph_traits<Graph>::vertex_iterator v_iter;<br> typedef boost::graph_traits<Graph>::edge_descriptor e_des;<br> typedef boost::graph_traits<Graph>::edge_iterator e_iter;<br> Graph newg;<br> <br> ......// insert data in newg<br> <br> v_iter vit, ve;<br> int index = 0;<br> for(boost::tie(vit,ve)=boost::vertices(newg); vit!=ve; ++vit ){<br> v_des vd = *vit;<br> vd->id()= index++;<br> }<br><br> but the reply is: "void*" is not a pointer-to-object type at the last line.<br>What kind of error it is?? How can I solve this problem??<br>Thanks<br>Best regards<br>-Bombielfil-<br>