From 466e0650ec2d153d255a40ec230eb77d7f1c3334 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 9 Apr 2023 08:04:11 -0700 Subject: [PATCH] Remove problematic workaround --- include/fmt/core.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 71553907..9d48fef9 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1443,13 +1443,6 @@ template struct arg_mapper { : bool_constant() || !std::is_const>::value> {}; -#if (FMT_MSC_VERSION != 0 && FMT_MSC_VERSION < 1910) || \ - FMT_ICC_VERSION != 0 || defined(__NVCC__) - // Workaround a bug in MSVC and Intel (Issue 2746). - template FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& { - return val; - } -#else template ::value)> FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& { return val; @@ -1458,7 +1451,6 @@ template struct arg_mapper { FMT_CONSTEXPR FMT_INLINE auto do_map(T&&) -> unformattable_const { return {}; } -#endif template , FMT_ENABLE_IF(!is_string::value && !is_char::value &&