From fd9f1bff44c57a13119e6643e7bcbc59625c2b6f Mon Sep 17 00:00:00 2001 From: mocabe Date: Mon, 3 Jun 2019 13:52:25 +0900 Subject: [PATCH] Fix VS2019 compilation issue (#1186) --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 970fe8fa..3c55ef6f 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -206,7 +206,8 @@ using enable_if_t = typename std::enable_if::type; // enable_if helpers to be used in template parameters which results in much // shorter symbols: https://godbolt.org/z/sWw4vP. -#define FMT_ENABLE_IF_T(...) enable_if_t<__VA_ARGS__, int> +// Also include fix for VS2019 compilation issue (see #1140 and #1186). +#define FMT_ENABLE_IF_T(...) enable_if_t<(__VA_ARGS__), int> #define FMT_ENABLE_IF(...) FMT_ENABLE_IF_T(__VA_ARGS__) = 0 namespace internal {