From 7d9cf59649b9c6b80dab50c0adfd1984997820b2 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 23 Sep 2023 00:46:15 +0300 Subject: [PATCH] Fix atomic level --- include/spdlog/details/null_mutex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/spdlog/details/null_mutex.h b/include/spdlog/details/null_mutex.h index 91b216b6..58c9bd59 100644 --- a/include/spdlog/details/null_mutex.h +++ b/include/spdlog/details/null_mutex.h @@ -26,17 +26,17 @@ struct null_atomic : value(new_value) {} - [[nodiscard]] T load(std::memory_order = std::memory_order_relaxed) const + [[nodiscard]] T load(std::memory_order = std::memory_order_relaxed) const noexcept { return value; } - void store(T new_value, std::memory_order = std::memory_order_relaxed) + void store(T new_value, std::memory_order = std::memory_order_relaxed) noexcept { value = new_value; } - T exchange(T new_value, std::memory_order = std::memory_order_relaxed) + T exchange(T new_value, std::memory_order = std::memory_order_relaxed) noexcept { std::swap(new_value, value); return new_value; // return value before the call