From 76d12183452a667c7888424469fdc9792fbed208 Mon Sep 17 00:00:00 2001 From: vitaut Date: Fri, 10 Jul 2015 07:58:27 -0700 Subject: [PATCH] Workaround a bug in MSVC2010 (#188) Due to broken lookup rules, MSVC finds fmt::internal::check instead of IsConvertibleToInt::check. --- format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/format.h b/format.h index e0e1a5d5..67bf231d 100644 --- a/format.h +++ b/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) \