From 118d8bccc282ce1bf59267c217001ed2f99452e5 Mon Sep 17 00:00:00 2001 From: mocabe Date: Thu, 9 May 2019 01:41:58 +0900 Subject: [PATCH] Fix compilation error under MSVC 19.21 (#1140) --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 54686e2d..0d1b5523 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -227,7 +227,7 @@ // An enable_if helper to be used in template parameters. enable_if in template // parameters results in much shorter symbols: https://godbolt.org/z/sWw4vP. -#define FMT_ENABLE_IF_T(...) typename std::enable_if<__VA_ARGS__, int>::type +#define FMT_ENABLE_IF_T(...) typename std::enable_if<(__VA_ARGS__), int>::type #define FMT_ENABLE_IF(...) FMT_ENABLE_IF_T(__VA_ARGS__) = 0 FMT_BEGIN_NAMESPACE