diff --git a/toolsrc/include/vcpkg/versiondeserializers.h b/toolsrc/include/vcpkg/versiondeserializers.h index 249d685cbb..2efe340d74 100644 --- a/toolsrc/include/vcpkg/versiondeserializers.h +++ b/toolsrc/include/vcpkg/versiondeserializers.h @@ -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> parse_versions_file(Files::Filesystem& fs, StringView port_name, const fs::path& versions_file_path); -} \ No newline at end of file +} diff --git a/toolsrc/src/vcpkg/versiondeserializers.cpp b/toolsrc/src/vcpkg/versiondeserializers.cpp index 5c57a99222..ec27fb8c8c 100644 --- a/toolsrc/src/vcpkg/versiondeserializers.cpp +++ b/toolsrc/src/vcpkg/versiondeserializers.cpp @@ -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 schemed_deserializer_fields()