mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[vcpkg] fix vs2015 build (#14659)
This commit is contained in:
parent
e013fa17ec
commit
817100c793
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user