Use `long double instead of int` to avoid warnings

This commit is contained in:
vitaut 2015-03-17 20:12:36 -07:00
parent d99c49b970
commit 3d4af9cd65

View File

@ -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)) };
};