Avoid deprecated Singleton<T>::get() in folly/futures
[folly.git] / folly / AtomicLinkedList.h
index eca8de16d9b32450cdab81876ae1c3834c6c9efe..f24746a5d1f6f8e0f7c234f75f5dfd2d1a99853a 100644 (file)
@@ -63,7 +63,7 @@ class AtomicLinkedList {
    * Note: list must be empty on destruction.
    */
   ~AtomicLinkedList() {
-    assert(head_ == nullptr);
+    assert(empty());
   }
 
   bool empty() const {