From 9dbd97b9fdb445c313e60a1e9387b72adf664c8e Mon Sep 17 00:00:00 2001 From: Piotr Wygocki Date: Tue, 5 Feb 2019 21:07:34 +0100 Subject: [PATCH] successive_shortest_path_nonnegative_weights const bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit THX to Ireneusz Szcześniak for finding this bug --- .../successive_shortest_path_nonnegative_weights.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/boost/graph/successive_shortest_path_nonnegative_weights.hpp b/include/boost/graph/successive_shortest_path_nonnegative_weights.hpp index 6a3aeb168..5edb0a383 100644 --- a/include/boost/graph/successive_shortest_path_nonnegative_weights.hpp +++ b/include/boost/graph/successive_shortest_path_nonnegative_weights.hpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -129,7 +130,7 @@ void successive_shortest_path_nonnegative_weights_dispatch3( //setting default distance map template void successive_shortest_path_nonnegative_weights_dispatch3( - Graph &g, + const Graph &g, typename graph_traits::vertex_descriptor s, typename graph_traits::vertex_descriptor t, Capacity capacity, @@ -150,7 +151,7 @@ void successive_shortest_path_nonnegative_weights_dispatch3( template void successive_shortest_path_nonnegative_weights_dispatch2( - Graph &g, + const Graph &g, typename graph_traits::vertex_descriptor s, typename graph_traits::vertex_descriptor t, Capacity capacity, @@ -167,7 +168,7 @@ void successive_shortest_path_nonnegative_weights_dispatch2( //setting default distance map template void successive_shortest_path_nonnegative_weights_dispatch2( - Graph &g, + const Graph &g, typename graph_traits::vertex_descriptor s, typename graph_traits::vertex_descriptor t, Capacity capacity, @@ -189,7 +190,7 @@ void successive_shortest_path_nonnegative_weights_dispatch2( template void successive_shortest_path_nonnegative_weights_dispatch1( - Graph &g, + const Graph &g, typename graph_traits::vertex_descriptor s, typename graph_traits::vertex_descriptor t, Capacity capacity, @@ -206,7 +207,7 @@ void successive_shortest_path_nonnegative_weights_dispatch1( //setting default predecessors map template void successive_shortest_path_nonnegative_weights_dispatch1( - Graph &g, + const Graph &g, typename graph_traits::vertex_descriptor s, typename graph_traits::vertex_descriptor t, Capacity capacity, @@ -257,3 +258,4 @@ void successive_shortest_path_nonnegative_weights( }//boost #endif /* BOOST_GRAPH_SUCCESSIVE_SHORTEST_PATH_HPP */ +