mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00

C++20 renamed the `std::memory_order::memory_order_*` enum constants to `std::memory_order::*`. https://en.cppreference.com/w/cpp/atomic/memory_order C++17 supports: `std::memory_order_relaxed` `std::memory_order::memory_order_relaxed` But C++20 supports: `std::memory_order_relaxed` `std::memory_order::memory_order::relaxed` Thus, `std::memory_order_relaxed` is the only shared name if we want to support compiling Firefox with -std=c++17 and -std=c++20 as we transition mozilla-central from C++17 to C++20. Differential Revision: https://phabricator.services.mozilla.com/D208963