diff --git a/include/fmt/base.h b/include/fmt/base.h index 64c6a07b..707b0ad1 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2819,11 +2819,11 @@ template class fstring { template using format_string = typename fstring::t; template -using is_formattable = bool_constant::value, detail::unformattable, T>, - Char>>::value>; +using is_formattable = bool_constant< + !std::is_base_of::value, + detail::unformattable, T>, + Char>>::value>; #ifdef __cpp_concepts template