using graph_property_iter_range::const_iterator

I'm using boost 1_31_0 and gcc 3.4.2.
I'm adding an iterator interface to my class that abstracts use of
internal boost graph properties and have had success with one exception
that involves const_iterator.
Here is how this class looks:
struct VertexData
{
typedef boost::graph_property_iter_range

On Sep 20, 2004, at 12:27 PM, Jeffrey Holle wrote:
const_iterator begin(void) const {return boost::get_property_iter_range(dataGraph_,vertex_Datum).first;}
Is dataGraph_ stored as a reference? You probably want:
return boost::get_property_iter_range(static_cast

Thanks for this! It works perfectly,const_cast works too. Doug Gregor wrote:
On Sep 20, 2004, at 12:27 PM, Jeffrey Holle wrote:
const_iterator begin(void) const {return boost::get_property_iter_range(dataGraph_,vertex_Datum).first;}
Is dataGraph_ stored as a reference? You probably want:
return boost::get_property_iter_range(static_cast
(dataGraph_),vertex_Datum).first; Doug
participants (2)
-
Doug Gregor
-
Jeffrey Holle