From 4749d7d67d43ac3c7c1c743eb838962c418f0d14 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 12 Apr 2017 16:24:49 -0700 Subject: [PATCH] Move line below temp struct --- toolsrc/src/vcpkg_Dependencies.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/toolsrc/src/vcpkg_Dependencies.cpp b/toolsrc/src/vcpkg_Dependencies.cpp index b714abdae4..4c0254ae4c 100644 --- a/toolsrc/src/vcpkg_Dependencies.cpp +++ b/toolsrc/src/vcpkg_Dependencies.cpp @@ -114,8 +114,6 @@ namespace vcpkg::Dependencies std::vector create_install_plan(const VcpkgPaths& paths, const std::vector& specs, const StatusParagraphs& status_db) { - std::unordered_set specs_as_set(specs.cbegin(), specs.cend()); - struct InstallAdjacencyProvider final : Graphs::AdjacencyProvider { const VcpkgPaths& paths; @@ -151,6 +149,7 @@ namespace vcpkg::Dependencies auto toposort = Graphs::topological_sort(specs, InstallAdjacencyProvider{ paths, status_db }); + std::unordered_set specs_as_set(specs.cbegin(), specs.cend()); std::vector ret; for (const AnyParagraph& pkg : toposort) {