Fix atomic level

This commit is contained in:
gabime 2023-09-23 00:30:24 +03:00
parent 392917f855
commit 3a405ba958
2 changed files with 2 additions and 3 deletions

View File

@ -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<log_level>;

View File

@ -6,7 +6,7 @@
#include <atomic>
#include <utility>
// 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)