Skip to content

Commit

Permalink
Fix warnings on lesser compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Mar 18, 2015
1 parent 107a95c commit 275d1ab
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion format.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,20 @@ class IsConvertibleToInt {

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 no &check(...);

Expand Down

0 comments on commit 275d1ab

Please sign in to comment.