mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-27 08:20:53 +08:00
Fixed compilation for vs2013
This commit is contained in:
parent
1e385851d7
commit
4ba19821ce
@ -46,7 +46,7 @@ inline void append_int(T n, fmt::basic_memory_buffer<char, Buffer_Size> &dest)
|
||||
template<typename T>
|
||||
inline unsigned count_digits(T n)
|
||||
{
|
||||
using count_type = typename std::conditional<(sizeof(T) > sizeof(std::uint32_t)), std::uint64_t, std::uint32_t>::type;
|
||||
using count_type = typename std::conditional<(sizeof(T) > sizeof(uint32_t)), uint64_t, uint32_t>::type;
|
||||
return fmt::internal::count_digits(static_cast<count_type>(n));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user