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:
@@ -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) );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user