From ed5d7b90064cdffd42b3e9cea2c3d5247f4b9d54 Mon Sep 17 00:00:00 2001 From: nicole mazzuca Date: Wed, 2 Dec 2020 12:58:01 -0800 Subject: [PATCH] [vcpkg] fix compile on vs2015 (#14915) * [vcpkg] fix compile on vs2015 * format --- toolsrc/src/vcpkg/install.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/toolsrc/src/vcpkg/install.cpp b/toolsrc/src/vcpkg/install.cpp index 8a9fec9632..eee0eca0ed 100644 --- a/toolsrc/src/vcpkg/install.cpp +++ b/toolsrc/src/vcpkg/install.cpp @@ -839,20 +839,21 @@ namespace vcpkg::Install if (args.versions_enabled()) { PortFileProvider::VersionedPortfileProvider verprovider(paths); - auto baseprovider = [&]() -> PortFileProvider::BaselineProvider { + auto baseprovider = [&]() -> std::unique_ptr { if (auto p_baseline = manifest_scf.core_paragraph->extra_info.get("$x-default-baseline")) { - return PortFileProvider::BaselineProvider(paths, p_baseline->string().to_string()); + return std::make_unique(paths, + p_baseline->string().to_string()); } else { - return PortFileProvider::BaselineProvider(paths); + return std::make_unique(paths); } }(); auto install_plan = Dependencies::create_versioned_install_plan(verprovider, - baseprovider, + *baseprovider, var_provider, manifest_scf.core_paragraph->dependencies, manifest_scf.core_paragraph->overrides,