Boost logo

Boost Users :

Subject: Re: [Boost-users] Custom Edge Properties (boost-graph) - struct
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-15 00:48:33


AMDG

Kya Bey wrote:
> property_map<Graph, vertex_name_t>::type v_names ;
> v_names = get(vertex_name,g) ;
>
> But on attempting to do something similar for retrieving the edge properties
> always fails with the following error message
>
> "test.cpp: 75: error: expected primary-expression before ',' token"
>
> test.cpp
>
> 71: property_map<Graph, edge_properties>::type epr;
> 72: property_map<Graph, vertex_name_t>::type v_names ;
>
> 74: v_names = get(vertex_name,g) ;
> 75: epr = get(edge_properties,g) ;
>

edge_properties appears to be a type, not an object here.

> I've tried various variants but seems to me i'm missing something
> fundamental in the way boost-graph keeps the edge_properties hidden.
> Any pointers will be useful.
>

In Christ,
Steven Watanabe


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