
19 Nov
2008
19 Nov
'08
12:22 a.m.
// typedef boost::property_map<Graph, double const EdgeProp::*>::type EdgeWeightMap; // EdgeWeightMap edgeWeightMap = get(&EdgeProp::cost, graph);
Option A works, but is a bit ugly. Option B is what you suggested, but it gives the following error:
Gotta a const Graph also: property_map<const Graph, double const EdgeProp::*> Andrew Sutton andrew.n.sutton@gmail.com