diff --git a/boost_properties/in_algorithms.cxx b/boost_properties/in_algorithms.cxx index 96b3ce6..6834315 100644 --- a/boost_properties/in_algorithms.cxx +++ b/boost_properties/in_algorithms.cxx @@ -276,7 +276,7 @@ void example3() std::map preds; my_predmap predmap(preds); - std::vector dists; + std::vector dists(boost::num_vertices(G)); my_distmap distmap(G, dists); std::map weights; my_weightmap weightmap(weights);