From 8c83132ef7552fa84df0dde2aea31f023abd71ab Mon Sep 17 00:00:00 2001 From: Jeremiah Willcock Date: Thu, 13 Sep 2012 13:18:36 +0000 Subject: [PATCH] Applied patch from #7327; fixes #7327 [SVN r80511] --- include/boost/graph/filtered_graph.hpp | 2 +- include/boost/graph/labeled_graph.hpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/graph/filtered_graph.hpp b/include/boost/graph/filtered_graph.hpp index 66cead60..6ac82927 100644 --- a/include/boost/graph/filtered_graph.hpp +++ b/include/boost/graph/filtered_graph.hpp @@ -210,7 +210,7 @@ namespace boost { static vertex_descriptor null_vertex() { - return Graph::null_vertex(); + return Traits::null_vertex(); } //private: diff --git a/include/boost/graph/labeled_graph.hpp b/include/boost/graph/labeled_graph.hpp index e1a2f7c2..67505d25 100644 --- a/include/boost/graph/labeled_graph.hpp +++ b/include/boost/graph/labeled_graph.hpp @@ -196,7 +196,7 @@ namespace graph_detail { { // If the element is already occupied, then we probably don't want to // overwrite it. - if(c[l] == Graph::null_vertex()) return false; + if(c[l] == graph_traits::null_vertex()) return false; c[l] = v; return true; } @@ -411,7 +411,7 @@ public: /** Return a null descriptor */ static vertex_descriptor null_vertex() - { return graph_type::null_vertex(); } + { return graph_traits::null_vertex(); } private: graph_type _graph; @@ -525,7 +525,7 @@ public: #endif static vertex_descriptor null_vertex() - { return graph_type::null_vertex(); } + { return graph_traits::null_vertex(); } private: graph_type* _graph;