From 36f174f920a35c7de58906b216008f8b56bd7231 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Wed, 4 May 2016 10:26:43 -0700 Subject: [PATCH] Don't attempt to implicitly convert an atomic to bool Summary: MSVC doesn't like it, so the other uses were changed to .load() explicitly a while back, but this use has been added since then. Reviewed By: yfeldblum Differential Revision: D3255261 fb-gh-sync-id: 11d49902eb3ef7113a7c57cc760353554a487496 fbshipit-source-id: 11d49902eb3ef7113a7c57cc760353554a487496 --- folly/AtomicIntrusiveLinkedList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/AtomicIntrusiveLinkedList.h b/folly/AtomicIntrusiveLinkedList.h index a78b685f..e7455422 100644 --- a/folly/AtomicIntrusiveLinkedList.h +++ b/folly/AtomicIntrusiveLinkedList.h @@ -68,7 +68,7 @@ class AtomicIntrusiveLinkedList { } bool empty() const { - return head_ == nullptr; + return head_.load() == nullptr; } /** -- 2.34.1