Commit 6aa52bcf authored by Maged Michael's avatar Maged Michael Committed by Facebook Github Bot

SingleWriterFixedHashMap: Check for __cpp_lib_atomic_is_always_lock_free

Summary: Add check for `__cpp_lib_atomic_is_always_lock_free` for using `is_always_lock_free`.

Reviewed By: davidtgoldblatt

Differential Revision: D18827013

fbshipit-source-id: 796d1ce3c279a807198897c092464dc3aff734e3
parent 1cab1488
...@@ -50,7 +50,7 @@ namespace folly { ...@@ -50,7 +50,7 @@ namespace folly {
/// ///
template <typename Key, typename Value> template <typename Key, typename Value>
class SingleWriterFixedHashMap { class SingleWriterFixedHashMap {
#if !FOLLY_MOBILE #if __cpp_lib_atomic_is_always_lock_free
static_assert( static_assert(
std::atomic<Value>::is_always_lock_free, std::atomic<Value>::is_always_lock_free,
"This implementation depends on having fast atomic " "This implementation depends on having fast atomic "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment