2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-31 20:22:09 +00:00

Fix directed_graph::swap

This commit is contained in:
BenPope
2014-04-21 22:15:48 +08:00
parent cb26ccf2ba
commit 86bbbf563d

View File

@@ -307,7 +307,7 @@ public:
void swap(directed_graph& g)
{
m_graph.swap(g);
m_graph.swap(g.m_graph);
std::swap(m_num_vertices, g.m_num_vertices);
std::swap(m_max_vertex_index, g.m_max_vertex_index);
std::swap(m_num_edges, g.m_num_edges);