From cacf434b5cc72b8a59c77df7add7fe2a7567f2ee Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Sun, 12 Nov 2023 14:47:38 +0300 Subject: [PATCH] Fix memory_order syntax --- clickhouse/types/types.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clickhouse/types/types.cpp b/clickhouse/types/types.cpp index 79e8be48..a437ebd5 100644 --- a/clickhouse/types/types.cpp +++ b/clickhouse/types/types.cpp @@ -161,9 +161,9 @@ uint64_t Type::GetTypeUniqueId() const { // 1. going to be the same // 2. going to be stored atomically - if (type_unique_id_.load(std::memory_order::memory_order_relaxed) == 0) { + if (type_unique_id_.load(std::memory_order::relaxed) == 0) { const auto name = GetName(); - type_unique_id_.store(CityHash64WithSeed(name.c_str(), name.size(), code_), std::memory_order::memory_order_relaxed); + type_unique_id_.store(CityHash64WithSeed(name.c_str(), name.size(), code_), std::memory_order::relaxed); } return type_unique_id_;