[vcpkg] fix v140. again (#15116)

This commit is contained in:
nicole mazzuca 2020-12-15 14:31:10 -08:00 committed by GitHub
parent 595777db23
commit 0d76ba45a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -22,6 +22,11 @@ namespace vcpkg
struct SchemedVersion
{
SchemedVersion() = default;
SchemedVersion(Versions::Scheme scheme_, VersionT versiont_) : scheme(scheme_), versiont(std::move(versiont_))
{
}
Versions::Scheme scheme = Versions::Scheme::String;
VersionT versiont;
};
@ -47,4 +52,4 @@ namespace vcpkg
ExpectedS<std::vector<VersionDbEntry>> parse_versions_file(Files::Filesystem& fs,
StringView port_name,
const fs::path& versions_file_path);
}
}

View File

@ -109,7 +109,7 @@ namespace vcpkg
Checks::unreachable(VCPKG_LINE_INFO);
}
return SchemedVersion{version_scheme, {version, port_version}};
return SchemedVersion(version_scheme, VersionT{version, port_version});
}
View<StringView> schemed_deserializer_fields()