From 907ae37420f304a6bfc1b94299eba17fa73ab31a Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Fri, 11 Feb 2022 01:49:22 +0500 Subject: [PATCH] Workaround to Intel compiler --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 4dc83ddfb7ca..5ce1cb473954 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1431,8 +1431,8 @@ template struct arg_mapper { !std::is_const>::value || has_fallback_formatter::value> {}; -#if FMT_MSC_VER != 0 && FMT_MSC_VER < 1910 - // Workaround a bug in MSVC. +#if (FMT_MSC_VER != 0 && FMT_MSC_VER < 1910) || FMT_ICC_VERSION != 0 + // Workaround a bug in MSVC and Intel (Issue 2746). template FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& { return val; }