Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Bundled properties and property maps
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2008-11-19 08:25:38

> I was able to compile your original code by changing the line
> typedef boost::property_map<Graph, double EdgeProp::*>::type
> EdgeWeightMap;
> to
> typedef boost::property_map<Graph, double EdgeProp::*>::const_type
> EdgeWeightMap;

That's right! I had completely forgotten about the const_type member... Good
catch Dmitry.

Andrew Sutton

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at