From 75c8652d82476651b70ea6ad4aa7fc567c176624 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Mon, 21 May 2001 19:17:08 +0000 Subject: [PATCH] fixed source() and target() functions to take a const graph ptr [SVN r10174] --- include/boost/graph/stanford_graph.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/graph/stanford_graph.hpp b/include/boost/graph/stanford_graph.hpp index ab633992..1049202c 100644 --- a/include/boost/graph/stanford_graph.hpp +++ b/include/boost/graph/stanford_graph.hpp @@ -140,8 +140,8 @@ namespace boost { public: sgb_edge() : _arc(0), _src(0) { } sgb_edge(Arc* a, Vertex* s) : _arc(a), _src(s) { } - friend Vertex* source(self e, sgb_graph_ptr) { return e._src; } - friend Vertex* target(self e, sgb_graph_ptr) { return e._arc->tip; } + friend Vertex* source(self e, sgb_const_graph_ptr) { return e._src; } + friend Vertex* target(self e, sgb_const_graph_ptr) { return e._arc->tip; } friend bool operator==(const self& a, const self& b) { return a._arc == b._arc; } friend bool operator!=(const self& a, const self& b) {