mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
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:
parent
e498ffbb3d
commit
76d1218345
6
format.h
6
format.h
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user