2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-10 23:42:14 +00:00

removed use of color_vec[0] to avoid problems when num_vertices(g) == 0

[SVN r10572]
This commit is contained in:
Jeremy Siek
2001-07-09 14:10:56 +00:00
parent d3afb05747
commit d56e2dcca3

View File

@@ -138,11 +138,12 @@ namespace boost {
detail::error_property_not_found)
{
std::vector<default_color_type> color_vec(num_vertices(g));
default_color_type c;
dfs_impl(g, vis,
make_iterator_property_map
(color_vec.begin(),
choose_const_pmap(get_param(params, vertex_index),
g, vertex_index), color_vec[0]) );
(color_vec.begin(),
choose_const_pmap(get_param(params, vertex_index),
g, vertex_index), c) );
}
};