From c836b6df3b713348e32f951c20a1e0d4589d24c5 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 11 Jul 2014 14:01:28 +0200 Subject: [PATCH] fix SCC computation in debug mode by clearing a vector --- Algorithms/StronglyConnectedComponents.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Algorithms/StronglyConnectedComponents.h b/Algorithms/StronglyConnectedComponents.h index be664cf57..9523bf89f 100644 --- a/Algorithms/StronglyConnectedComponents.h +++ b/Algorithms/StronglyConnectedComponents.h @@ -190,6 +190,7 @@ class TarjanSCC edge_list.push_back(edge); } } + input_edges.clear(); input_edges.shrink_to_fit(); BOOST_ASSERT_MSG(0 == input_edges.size() && 0 == input_edges.capacity(), "input edge vector not properly deallocated");