mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-04 17:26:42 +00:00
Fix warnings on lesser compilers
This commit is contained in:
parent
107a95c9cc
commit
275d1ab423
15
format.h
15
format.h
@ -774,7 +774,20 @@ class IsConvertibleToInt {
|
|||||||
|
|
||||||
static const T &get();
|
static const T &get();
|
||||||
|
|
||||||
// Use ``long double`` instead of ``int`` to avoid warnings.
|
static yes &check(bool);
|
||||||
|
static yes &check(char);
|
||||||
|
static yes &check(signed char);
|
||||||
|
static yes &check(unsigned char);
|
||||||
|
static yes &check(short);
|
||||||
|
static yes &check(unsigned short);
|
||||||
|
static yes &check(int);
|
||||||
|
static yes &check(unsigned int);
|
||||||
|
static yes &check(long);
|
||||||
|
static yes &check(unsigned long);
|
||||||
|
static yes &check(fmt::LongLong);
|
||||||
|
static yes &check(fmt::ULongLong);
|
||||||
|
static yes &check(float);
|
||||||
|
static yes &check(double);
|
||||||
static yes &check(long double);
|
static yes &check(long double);
|
||||||
static no &check(...);
|
static no &check(...);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user