From 86bbbf563d1fe548dbc6bb327e74a5bef5160c30 Mon Sep 17 00:00:00 2001 From: BenPope Date: Mon, 21 Apr 2014 22:15:48 +0800 Subject: [PATCH] Fix directed_graph::swap --- include/boost/graph/directed_graph.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/graph/directed_graph.hpp b/include/boost/graph/directed_graph.hpp index 585308d1..2c56a4e0 100644 --- a/include/boost/graph/directed_graph.hpp +++ b/include/boost/graph/directed_graph.hpp @@ -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);