mirror of
https://github.com/gabime/spdlog.git
synced 2025-11-16 09:28:56 +08:00
modernize-use-using
This commit is contained in:
@@ -157,7 +157,7 @@ private:
|
||||
size_t const max_size_;
|
||||
|
||||
static size_t const cacheline_size = 64;
|
||||
typedef char cacheline_pad_t[cacheline_size];
|
||||
using cacheline_pad_t = char[cacheline_size];
|
||||
|
||||
cacheline_pad_t pad0_;
|
||||
cell_t* const buffer_;
|
||||
|
||||
@@ -216,10 +216,12 @@ private:
|
||||
std::chrono::milliseconds _flush_interval_ms;
|
||||
std::function<void()> _worker_teardown_cb = nullptr;
|
||||
};
|
||||
|
||||
#ifdef SPDLOG_NO_REGISTRY_MUTEX
|
||||
typedef registry_t<spdlog::details::null_mutex> registry;
|
||||
using registry = registry_t<spdlog::details::null_mutex>;
|
||||
#else
|
||||
typedef registry_t<std::mutex> registry;
|
||||
using registry = registry_t<std::mutex>;
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user