From 5cab2dcf6116eee02a53b28e87b1bd77f070dd32 Mon Sep 17 00:00:00 2001 From: Jeremiah Willcock Date: Wed, 20 Jun 2012 16:37:50 +0000 Subject: [PATCH] Changed grid_graph_index_map to use raw pointer to graph based on suggestion by Sergey Mitsyn [SVN r79017] --- include/boost/graph/grid_graph.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/graph/grid_graph.hpp b/include/boost/graph/grid_graph.hpp index f63f3d01..7bb37324 100644 --- a/include/boost/graph/grid_graph.hpp +++ b/include/boost/graph/grid_graph.hpp @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include @@ -63,14 +62,14 @@ namespace boost { grid_graph_index_map() { } grid_graph_index_map(const Graph& graph) : - m_graph(make_shared(graph)) { } + m_graph(&graph) { } value_type operator[](key_type key) const { return (m_graph->index_of(key)); } protected: - shared_ptr m_graph; + const Graph* m_graph; }; template