From bbb784fb1b9dc35f9dbbe32a3a43c8b725d889a6 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 19 Aug 2023 07:22:40 -0700 Subject: [PATCH] Fix a gcc error about partial specialization after instantiation --- include/fmt/core.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index bfdca5f1..39d61831 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1420,9 +1420,8 @@ template struct arg_mapper { FMT_ENABLE_IF( std::is_pointer::value || std::is_member_pointer::value || std::is_function::type>::value || - (std::is_convertible::value && - !std::is_convertible::value && - !has_formatter::value))> + (std::is_array::value && + !std::is_convertible::value))> FMT_CONSTEXPR auto map(const T&) -> unformattable_pointer { return {}; }