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)