diff --git a/include/boost/graph/detail/adjacency_list.hpp b/include/boost/graph/detail/adjacency_list.hpp index dbe07170..6bf94c2d 100644 --- a/include/boost/graph/detail/adjacency_list.hpp +++ b/include/boost/graph/detail/adjacency_list.hpp @@ -799,8 +799,10 @@ namespace boost { template inline typename Config::degree_size_type degree(typename Config::vertex_descriptor u, - const undirected_graph_helper& g) + const undirected_graph_helper& g_) { + typedef typename Config::graph_type Graph; + const Graph& g = static_cast(g_); return out_degree(u, g); }