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; }