From 1323cd4ea2e0d4f6c734d7ae75c3d8de0aeba638 Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Sun, 25 Jun 2023 10:36:43 -0500 Subject: [PATCH] Removing these two --- include/fmt/core.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index e30fba86..65fe9f98 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1550,11 +1550,6 @@ FMT_CONSTEXPR FMT_INLINE auto make_arg(T& val) -> value { constexpr bool formattable_char = !std::is_same::value; -#if defined(__cpp_if_constexpr) - if constexpr (!formattable_char) { - type_is_unformattable_for _; - } -#endif static_assert(formattable_char, "Mixing character types is disallowed."); // Formatting of arbitrary pointers is disallowed. If you want to format a @@ -1562,11 +1557,6 @@ FMT_CONSTEXPR FMT_INLINE auto make_arg(T& val) -> value { // formatting of `[const] volatile char*` printed as bool by iostreams. constexpr bool formattable_pointer = !std::is_same::value; -#if defined(__cpp_if_constexpr) - if constexpr (!formattable_pointer) { - type_is_unformattable_for _; - } -#endif static_assert(formattable_pointer, "Formatting of non-void pointers is disallowed.");