From 02f42466f041d9eb855ebc6dc990c844aedb0d52 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Mon, 25 Sep 2000 22:24:09 +0000 Subject: [PATCH] added specificity to source() and target() so that adjacency_list could be adapted. [SVN r7838] --- include/boost/graph/adjacency_list.hpp | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/include/boost/graph/adjacency_list.hpp b/include/boost/graph/adjacency_list.hpp index 1f800f06..7cc2fb0e 100644 --- a/include/boost/graph/adjacency_list.hpp +++ b/include/boost/graph/adjacency_list.hpp @@ -337,15 +337,33 @@ namespace boost { return get_property_value(g.m_property, value_type(), Tag()); } - template + // dwa 09/25/00 - needed to be more explicit so reverse_graph would work. + template inline Vertex - source(const detail::edge_base& e, Graph& ) + source(const detail::edge_base& e, + const adjacency_list&) { return e.m_source; } - template + + template inline Vertex - target(const detail::edge_base& e, Graph& ) + target(const detail::edge_base& e, + const adjacency_list&) { return e.m_target; }