Fix build in c++2a mode

pull/22924/head
Esun Kim 5 years ago
parent 729af3a43d
commit bf0df18e52
  1. 12
      src/core/lib/gprpp/atomic.h

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

Loading…
Cancel
Save