mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Workaround a bug in MSVC
This commit is contained in:
parent
5c7474e1fb
commit
3810d7e4d4
@ -523,11 +523,11 @@ FMT_MAKE_VALUE(UINT, unsigned, unsigned)
|
|||||||
// either to int or to long long depending on its size.
|
// either to int or to long long depending on its size.
|
||||||
using long_type =
|
using long_type =
|
||||||
std::conditional<sizeof(long) == sizeof(int), int, long long>::type;
|
std::conditional<sizeof(long) == sizeof(int), int, long long>::type;
|
||||||
FMT_MAKE_VALUE(sizeof(long) == sizeof(int) ? INT : LONG_LONG, long, long_type);
|
FMT_MAKE_VALUE((sizeof(long) == sizeof(int) ? INT : LONG_LONG), long, long_type)
|
||||||
using ulong_type =
|
using ulong_type =
|
||||||
std::conditional<sizeof(unsigned long) == sizeof(unsigned),
|
std::conditional<sizeof(unsigned long) == sizeof(unsigned),
|
||||||
unsigned, unsigned long long>::type;
|
unsigned, unsigned long long>::type;
|
||||||
FMT_MAKE_VALUE(sizeof(unsigned long) == sizeof(unsigned) ? UINT : ULONG_LONG,
|
FMT_MAKE_VALUE((sizeof(unsigned long) == sizeof(unsigned) ? UINT : ULONG_LONG),
|
||||||
unsigned long, ulong_type)
|
unsigned long, ulong_type)
|
||||||
|
|
||||||
FMT_MAKE_VALUE(LONG_LONG, long long, long long)
|
FMT_MAKE_VALUE(LONG_LONG, long long, long long)
|
||||||
|
Loading…
Reference in New Issue
Block a user