Boost logo

Boost :

From: Kaled Ahmed (medsearedsea_at_[hidden])
Date: 2004-10-18 01:57:47


The example in Chapter 5 of the BGL User Guide and Ref Manual book, edge weights are assigned floats as follows:
 
// The transmission delay values for each edge.
  float delay[] =
    {5.0, 1.0, 1.3, 3.0, 10.0, 2.0, 6.3, 0.4, 1.3, 1.2, 0.5};

Running the code with Borland C++ 5.6.4 for Win32, raises the following error in property_map.hpp:
 
"property_map.hpp": E2406 Dependent type qualifier 'float *' is not a class or struct type in function detail::bool bellman_dispatch<edge_list<_STL::pair<int,int>*,_STL::pair<int,int>,int,
_STL::random_access_iterator_tag>,int,const iterator_property_map<float *,el_ra_edge_property_map<int>,
float,float &>,float * const,int *,vertex_predecessor_t,bgl_named_params<float *,vertex_distance_t,bgl_named_params<iterator_property_map<float *,el_ra_edge_property_map<int>,float,float &>,
edge_weight_t,no_property> > >(edge_list<_STL::pair<int,int> *,_STL::pair<int,int>,int,_STL::
random_access_iterator_tag> &,int,iterator_property_map<float *,el_ra_edge_property_map<int>,
float,float &>,float *,const bgl_named_params<int *,vertex_predecessor_t,bgl_named_params<float *,
vertex_distance_t,bgl_named_params<iterator_property_map<float *,el_ra_edge_property_map<int>,
float,float &>,edge_weight_t,no_property> > > &) at line 26

 
Please advise.
 
Best Regards

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

                
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk