
18 Dec
2009
18 Dec
'09
5:51 p.m.
Jeremiah Willcock wrote:
Please tell me if there are any problems, as I have not tested this.
It seems to work. I had to do a little fix to your code though. In the function_property_map you use 'value_type' which isn't defined and which is, I believe : typedef typename boost::property_traits< function_property_map<Functor, Arg> >::value_type value_type; I also changed the functor type from 'Functor' to 'const Functor&'. It seems to work. What was the rationale for copying it ? My functor needs to have a pointer/reference to the graph to be able to get the my_edge object from the edge_descriptor passed to the operator(). Thanks a lot! -- Maxime