2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-09 11:12:28 +00:00

Fix parameter to add_vertices

[SVN r34413]
This commit is contained in:
Douglas Gregor
2006-06-27 13:46:36 +00:00
parent 1b468cb8aa
commit bf73135721

View File

@@ -352,7 +352,7 @@ add_vertex(BOOST_CSR_GRAPH_TYPE& g) {
template<BOOST_CSR_GRAPH_TEMPLATE_PARMS>
inline Vertex
add_vertices(Vertex count, BOOST_CSR_GRAPH_TYPE& g) {
add_vertices(typename BOOST_CSR_GRAPH_TYPE::vertices_size_type count, BOOST_CSR_GRAPH_TYPE& g) {
Vertex old_num_verts_plus_one = g.m_rowstart.size();
g.m_rowstart.resize(old_num_verts_plus_one + count, EdgeIndex(0));
return old_num_verts_plus_one - 1;