From e751461ff1be9b977d39d92b785733121bf0ef41 Mon Sep 17 00:00:00 2001 From: Daniel Chabrowski Date: Mon, 19 Nov 2018 18:59:17 +0100 Subject: [PATCH] Fix template error --- include/spdlog/details/fmt_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/fmt_helper.h b/include/spdlog/details/fmt_helper.h index fb9946a4..afc76b25 100644 --- a/include/spdlog/details/fmt_helper.h +++ b/include/spdlog/details/fmt_helper.h @@ -46,7 +46,7 @@ inline void append_int(T n, fmt::basic_memory_buffer &dest) template inline unsigned count_digits(T n) { - using count_type = std::conditional<(sizeof(T) > sizeof(std::uint32_t)), std::uint64_t, std::uint32_t>::type; + using count_type = typename std::conditional<(sizeof(T) > sizeof(std::uint32_t)), std::uint64_t, std::uint32_t>::type; return fmt::internal::count_digits(static_cast(n)); }