From 1cc10ab68f4857ae4e90bd3929adeaad00379d1e Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Wed, 4 Sep 2024 20:05:23 +0500 Subject: [PATCH] Make is_formattable work with const/volatile void Signed-off-by: Vladislav Shchapov --- include/fmt/base.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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