mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 11:29:01 +08:00
Add helper for count_digits
This commit is contained in:
@@ -652,7 +652,7 @@ public:
|
||||
|
||||
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
|
||||
{
|
||||
const auto field_size = fmt::internal::count_digits(static_cast<uint64_t>(msg.thread_id));
|
||||
const auto field_size = fmt_helper::count_digits(msg.thread_id);
|
||||
scoped_pad p(field_size, padinfo_, dest);
|
||||
fmt_helper::append_int(msg.thread_id, dest);
|
||||
}
|
||||
|
Reference in New Issue
Block a user