Work around VS2019 16.4.0 bugs (#2171)

Work around frontend bug in scoped_lock and code generation bug in reverse_iterator in gtest.

See https://github.com/google/googletest/pull/2635
This commit is contained in:
Peter Johnson
2019-12-14 10:48:19 -08:00
committed by GitHub
parent b468c51251
commit b78f115fcf
4 changed files with 13 additions and 1 deletions

View File

@@ -412,7 +412,11 @@ std::unique_ptr<PropertyImpl> HttpCameraImpl::CreateEmptyProperty(
}
bool HttpCameraImpl::CacheProperties(CS_Status* status) const {
#ifdef _MSC_VER // work around VS2019 16.4.0 bug
std::scoped_lock<wpi::mutex> lock(m_mutex);
#else
std::scoped_lock lock(m_mutex);
#endif
// Pretty typical set of video modes
m_videoModes.clear();