
Given a type of graph G such as : typedef adjacency_list < listS, listS, bidirectionalS > G; and its reverse graph type : typedef reverse_graph<G> RG How can I convert a graph RG to a graph G simply ? For instance, I would like to apply a function like : void foo(G x); to graphs of type G as well as type RG. I looked in the documentation, unsuccesfully. I tried to change the type of the function to : void foo(RG x); It worked for some functions, but not for others like : void bar(RG x) { // ... add_vertex(x); //... } The compiler complains about : 'Config::vertex_descriptor boost::add_vertex( const Config::vertex_property_type &, boost::adj_list_impl<Derived,Config,Base> &)' : expects 2 arguments - 1 provided Apparently there seems to be no default type conversion ... ? PS : I am currently using VC++ 7.1.