From 2ac94d0d5d425cd70a0a8f4f91c4ed57369b72b9 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..e1084fb0 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_;