[vcpkg] fix vs2015 build (#14659)

This commit is contained in:
nicole mazzuca 2020-11-19 19:17:10 -08:00 committed by GitHub
parent e013fa17ec
commit 817100c793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace vcpkg::Util
LockGuardPtr(LockGuarded<T>& sync) : m_lock(sync.m_mutex), m_ptr(sync.m_t) { }
private:
std::lock_guard<std::mutex> m_lock;
std::unique_lock<std::mutex> m_lock;
T& m_ptr;
};
}

View File

@ -214,7 +214,7 @@ namespace vcpkg::Build
static std::remove_const_t<decltype(ALL_POLICIES)> generate_all_policies()
{
std::remove_const_t<decltype(ALL_POLICIES)> res;
std::remove_const_t<decltype(ALL_POLICIES)> res{};
for (size_t i = 0; i < res.size(); ++i)
{
res[i] = static_cast<BuildPolicy>(i);