fix SCC computation in debug mode by clearing a vector

This commit is contained in:
Dennis Luxen 2014-07-11 14:01:28 +02:00
parent 637bab29c6
commit c836b6df3b

View File

@ -190,6 +190,7 @@ class TarjanSCC
edge_list.push_back(edge); edge_list.push_back(edge);
} }
} }
input_edges.clear();
input_edges.shrink_to_fit(); input_edges.shrink_to_fit();
BOOST_ASSERT_MSG(0 == input_edges.size() && 0 == input_edges.capacity(), BOOST_ASSERT_MSG(0 == input_edges.size() && 0 == input_edges.capacity(),
"input edge vector not properly deallocated"); "input edge vector not properly deallocated");