From 3a405ba958c80a3c9010ca4de45b5aefcd2b667d Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 23 Sep 2023 00:30:24 +0300 Subject: [PATCH] Fix atomic level --- include/spdlog/common.h | 2 +- include/spdlog/details/null_mutex.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index f17b46e6..5bc9a02e 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -172,7 +172,7 @@ enum class log_level n_levels }; -#if not defined(SPDLOG_NO_ATOMIC_LEVELS) +#if defined(SPDLOG_NO_ATOMIC_LEVELS) using level_t = details::null_atomic_log_level; #else using level_t = std::atomic; diff --git a/include/spdlog/details/null_mutex.h b/include/spdlog/details/null_mutex.h index eb8af19c..cd0ceed0 100644 --- a/include/spdlog/details/null_mutex.h +++ b/include/spdlog/details/null_mutex.h @@ -6,7 +6,7 @@ #include #include -// null, no cost dummy "mutex" and dummy "atomic" int +// null, no cost dummy "mutex" and dummy "atomic" log level namespace spdlog { enum class log_level; // forward declaration @@ -21,7 +21,6 @@ struct null_mutex struct null_atomic_log_level { spdlog::log_level value; - null_atomic_log_level() = default; explicit null_atomic_log_level(spdlog::log_level new_value) : value(new_value)