SPSCQueue
SPSCQueue copied to clipboard
COMPILE ERROR Mac OS - hardware_destructive_interference_size is not found
https://jira.mongodb.org/browse/SERVER-44270 only issue i can find that is related to this
__cpp_lib_hardware_interference_size is defined even though std::hardware_destructive_interference_size is not found
when using
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON)
this does not occur when using
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON)
or
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON)
That's a bug in LLVM. Just comment out that code until your compiler is fixed