Workaround a bug in MSVC2010 (#188)

Due to broken lookup rules, MSVC finds fmt::internal::check
instead of IsConvertibleToInt::check.
This commit is contained in:
vitaut 2015-07-10 07:58:27 -07:00
parent e498ffbb3d
commit 76d1218345

View File

@ -857,11 +857,11 @@ class IsConvertibleToInt {
static const T &get();
static yes &check(fmt::ULongLong);
static no &check(...);
static yes &convert(fmt::ULongLong);
static no &convert(...);
public:
enum { value = (sizeof(check(get())) == sizeof(yes)) };
enum { value = (sizeof(convert(get())) == sizeof(yes)) };
};
#define FMT_CONVERTIBLE_TO_INT(Type) \