From 76f2c557ef915a13b37bc9a3ff0f9299373fe923 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 12 Apr 2017 19:29:43 -0700 Subject: Fix issue in the toposort algorithm and move-only types --- toolsrc/include/vcpkg_Graphs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolsrc/include/vcpkg_Graphs.h b/toolsrc/include/vcpkg_Graphs.h index 1b9cbcb5a..97cd29236 100644 --- a/toolsrc/include/vcpkg_Graphs.h +++ b/toolsrc/include/vcpkg_Graphs.h @@ -40,7 +40,7 @@ namespace vcpkg::Graphs case ExplorationStatus::NOT_EXPLORED: { status = ExplorationStatus::PARTIALLY_EXPLORED; - const U& vertex_data = f.load_vertex_data(vertex); + U vertex_data = f.load_vertex_data(vertex); for (const V& neighbour : f.adjacency_list(vertex_data)) topological_sort_internal(neighbour, f, exploration_status, sorted); -- cgit v1.2.3