Remove/make private the default ***Holder constructor to allow compile time detection...
[folly.git] / folly / test / SharedMutexTest.cpp
index d18e3b6e263592fa87ce91801b898c74ba71877d..9e04edc76a0603c37c0475699c0cc4d890d2b287 100644 (file)
@@ -98,7 +98,7 @@ void runBasicHoldersTest() {
     EXPECT_FALSE(lock.try_lock_shared(token));
 
     // move ownership to another write holder via assign operator
-    typename Lock::WriteHolder holder3;
+    typename Lock::WriteHolder holder3(nullptr);
     holder3 = std::move(holder2);
     EXPECT_FALSE(lock.try_lock());
     EXPECT_FALSE(lock.try_lock_shared(token));