Boost logo

Boost Users :

From: Jean-Charles Campagne (newsnewsnewsnews_at_[hidden])
Date: 2006-05-22 12:55:54

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)
  // ...

The compiler complains about :
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.

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