Update documentation for Synchronized
[folly.git] / folly / MicroSpinLock.h
index 1318d9e9f0e02d9445d17553cb4e722674eacfec..4a691fd1ff54cb5da397f926c01e7efc25d7367a 100644 (file)
@@ -105,6 +105,9 @@ struct MicroSpinLock {
                                                         std::memory_order_relaxed);
   }
 };
+static_assert(
+    std::is_pod<MicroSpinLock>::value,
+    "MicroSpinLock must be kept a POD type.");
 
 //////////////////////////////////////////////////////////////////////