Boost logo

Boost Users :

From: BomBielFil (bombielfil_at_[hidden])
Date: 2008-02-11 09:38:27


Hi
I tried to compile this example:

typedef boost::adjacency_list
<boost::listS,boost::listS,boost::undirectedS,vertex_descriptor > Graph;
   typedef boost::graph_traits<Graph>::vertex_descriptor v_des;
   typedef boost::graph_traits<Graph>::vertex_iterator v_iter;
   typedef boost::graph_traits<Graph>::edge_descriptor e_des;
   typedef boost::graph_traits<Graph>::edge_iterator e_iter;
   Graph newg;

  ......// insert data in newg

  v_iter vit, ve;
  int index = 0;
  for(boost::tie(vit,ve)=boost::vertices(newg); vit!=ve; ++vit ){
    v_des vd = *vit;
    vd->id()= index++;
    }

but the reply is: "void*" is not a pointer-to-object type at the last line.
What kind of error it is?? How can I solve this problem??
Thanks
Best regards
-Bombielfil-



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