Merge pull request #22924 from veblush/fix-build-in-cpp20-2

Fix build in c++2a mode
pull/22927/head
Esun Kim 5 years ago committed by GitHub
commit 0c01ee544f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      src/core/lib/gprpp/atomic.h

@ -28,12 +28,12 @@
namespace grpc_core { namespace grpc_core {
enum class MemoryOrder { enum class MemoryOrder {
RELAXED = std::memory_order_relaxed, RELAXED = static_cast<int>(std::memory_order_relaxed),
CONSUME = std::memory_order_consume, CONSUME = static_cast<int>(std::memory_order_consume),
ACQUIRE = std::memory_order_acquire, ACQUIRE = static_cast<int>(std::memory_order_acquire),
RELEASE = std::memory_order_release, RELEASE = static_cast<int>(std::memory_order_release),
ACQ_REL = std::memory_order_acq_rel, ACQ_REL = static_cast<int>(std::memory_order_acq_rel),
SEQ_CST = std::memory_order_seq_cst SEQ_CST = static_cast<int>(std::memory_order_seq_cst)
}; };
template <typename T> template <typename T>

Loading…
Cancel
Save