From ae7eb3e65abbbcfce478eacf0cd7d108901cf008 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Wed, 4 Oct 2000 16:17:41 +0000 Subject: [PATCH] fixed degree() [SVN r7907] --- include/boost/graph/detail/adjacency_list.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }