aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-11-15 11:56:46 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-11-15 12:40:06 -0800
commit2b204e673914b20e662ed17f667c267690fd6b52 (patch)
tree7eefa5c0855be954ef5efd401aad4ef44e47c198 /toolsrc/include
parent2584f3e3def7f09bc373117985013ac019aa76d6 (diff)
downloadvcpkg-2b204e673914b20e662ed17f667c267690fd6b52.tar.gz
vcpkg-2b204e673914b20e662ed17f667c267690fd6b52.zip
Use custom struct instead of std::pair
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg_Dependencies.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg_Dependencies.h b/toolsrc/include/vcpkg_Dependencies.h
index b556eb7d8..909c27771 100644
--- a/toolsrc/include/vcpkg_Dependencies.h
+++ b/toolsrc/include/vcpkg_Dependencies.h
@@ -20,5 +20,11 @@ namespace vcpkg {namespace Dependencies
std::unique_ptr<SourceParagraph> spgh;
};
- std::vector<std::pair<package_spec, install_plan_action>> create_install_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db);
+ struct package_spec_with_install_plan
+ {
+ package_spec spec;
+ install_plan_action install_plan;
+ };
+
+ std::vector<package_spec_with_install_plan> create_install_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db);
}}