Boost logo

Boost :

From: jsiek_at_[hidden]
Date: 2000-10-04 11:18:06


Hi Jan,

Thanks for the bug report.
I've checked the fix into CVS.

===================================================================
RCS file: /cvsroot/boost/boost/boost/graph/detail/adjacency_list.hpp,v
retrieving revision 1.36
diff -r1.36 adjacency_list.hpp
802c802
< const undirected_graph_helper<Config>& g)

---
>            const undirected_graph_helper<Config>& g_)
803a804,805
>       typedef typename Config::graph_type Graph;
>       const Graph& g = static_cast<const Graph&>(g_);
> 
Jan van der Veen writes:
 > While converting my program from ggcl to bgl I ran into the following
 > problem:
 > 
 > #include <boost/graph/adjacency_list.hpp>
 > 
 > using namespace boost;
 > 
 > typedef adjacency_list<listS, listS, undirectedS> TGraph;
 > typedef graph_traits<TGraph>::vertex_descriptor TVertex;
 > 
 > int main(int, char**) 
 > {
 >     TGraph  G(1);
 >     TVertex u = *vertices(G).first;
 > 
 >     degree(u, G);
 > 
 >     return 0;
 > }

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