|
Boost Users : |
From: James Jackson (james.jackson_at_[hidden])
Date: 2008-02-11 09:45:50
Sorry, ignore my reply - I hit send accidentally before finishing 8-)
James.
On 11 Feb 2008, at 14:38, BomBielFil wrote:
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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