winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3b356a82cb0b58dc7a3c737e786eb85bd03b9ee3
parent 55bf254999edd1373d1df15a55b07776e4125af0
Author: Easton Pillay <easton@planeteaston.com>
Date:   Fri, 13 May 2022 18:20:35 -0400

Fixed builds on VS 2022 17.2. (#2156)


Diffstat:
Msrc/AppInstallerCommonCore/GroupPolicy.cpp | 2+-
Msrc/AppInstallerRepositoryCore/Microsoft/Schema/1_0/ManifestTable.h | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/AppInstallerCommonCore/GroupPolicy.cpp b/src/AppInstallerCommonCore/GroupPolicy.cpp @@ -133,7 +133,7 @@ namespace AppInstaller::Settings return std::nullopt; } - std::vector<Mapping::item_t> items; + std::vector<typename Mapping::item_t> items; for (const auto& value : listKey->Values()) { auto item = Mapping::ReadAndValidateItem(value); diff --git a/src/AppInstallerRepositoryCore/Microsoft/Schema/1_0/ManifestTable.h b/src/AppInstallerRepositoryCore/Microsoft/Schema/1_0/ManifestTable.h @@ -119,14 +119,14 @@ namespace AppInstaller::Repository::Microsoft::Schema::V1_0 template <typename... Tables> static auto GetIdsById(const SQLite::Connection& connection, SQLite::rowid_t id) { - return details::ManifestTableGetIdsById_Statement(connection, id, { Tables::ValueName()... }).GetRow<Tables::id_t...>(); + return details::ManifestTableGetIdsById_Statement(connection, id, { Tables::ValueName()... }).GetRow<typename Tables::id_t...>(); } // Gets the values requested for the manifest with the given rowid. template <typename... Tables> static auto GetValuesById(const SQLite::Connection& connection, SQLite::rowid_t id) { - return details::ManifestTableGetValuesById_Statement(connection, id, { SQLite::Builder::QualifiedColumn{ Tables::TableName(), Tables::ValueName() }... }).GetRow<Tables::value_t...>(); + return details::ManifestTableGetValuesById_Statement(connection, id, { SQLite::Builder::QualifiedColumn{ Tables::TableName(), Tables::ValueName() }... }).GetRow<typename Tables::value_t...>(); } // Gets the values for rows that match the given ids. @@ -144,7 +144,7 @@ namespace AppInstaller::Repository::Microsoft::Schema::V1_0 std::vector<std::tuple<typename ValueTables::value_t...>> result; while (stmt.Step()) { - result.emplace_back(stmt.GetRow<ValueTables::value_t...>()); + result.emplace_back(stmt.GetRow<typename ValueTables::value_t...>()); } return result; }