Add helper for count_digits

This commit is contained in:
Daniel Chabrowski
2018-11-19 17:15:39 +01:00
parent 14a071c478
commit f09d0f2301
2 changed files with 10 additions and 2 deletions

View File

@@ -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);
}