mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-02 14:30:10 +00:00
Use `long double
instead of
int
` to avoid warnings
This commit is contained in:
parent
d99c49b970
commit
3d4af9cd65
6
format.h
6
format.h
@ -773,9 +773,11 @@ class IsConvertibleToInt {
|
||||
typedef char no[2];
|
||||
|
||||
static const T &get();
|
||||
static yes &check(fmt::ULongLong);
|
||||
static no &check(...);
|
||||
|
||||
// Use ``long double`` instead of ``int`` to avoid warnings.
|
||||
static yes &check(long double);
|
||||
static no &check(...);
|
||||
|
||||
public:
|
||||
enum { value = (sizeof(check(get())) == sizeof(yes)) };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user