From 2a12b80769448ad44a69252f1990dd20068defd8 Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Tue, 23 Mar 2021 10:26:31 -0700 Subject: [PATCH] Fix a compilation error in CircleCI vs2019 CXX20 (#8090) Summary: As title. Always specify namespace::symbol_name... Test plan CircleCI and other CI results Pull Request resolved: https://github.com/facebook/rocksdb/pull/8090 Reviewed By: ltamasi Differential Revision: D27256130 Pulled By: riversand963 fbshipit-source-id: b9b9ae2b3a8b4a16f0384292e71c6aecca93c570 --- third-party/folly/folly/synchronization/DistributedMutex-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third-party/folly/folly/synchronization/DistributedMutex-inl.h b/third-party/folly/folly/synchronization/DistributedMutex-inl.h index ca5650de69..6e250c94d2 100644 --- a/third-party/folly/folly/synchronization/DistributedMutex-inl.h +++ b/third-party/folly/folly/synchronization/DistributedMutex-inl.h @@ -1374,7 +1374,8 @@ inline std::uintptr_t tryWake( // we need release here because of the write to waker_ and also because we // are unlocking the mutex, the thread we do the handoff to here should // see the modified data - new (&waiter->metadata_) Metadata(waker, bit_cast(sleepers)); + new (&waiter->metadata_) + Metadata(waker, folly::bit_cast(sleepers)); waiter->futex_.store(kWake, std::memory_order_release); return 0; }