From 2e3b6fbd9feb41a2dc84d95a04a5eaa7ec195e72 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 14 Sep 2024 09:48:33 -0700 Subject: [PATCH] Remove redundant check --- include/fmt/base.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 856ca426..aa04b14c 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2210,10 +2210,6 @@ template class value { FMT_ENABLE_IF(std::is_same::value && !std::is_integral>::value)> FMT_CONSTEXPR20 FMT_INLINE value(T&& x) { - // Use enum instead of constexpr because the latter may generate code. - enum { formattable_char = !std::is_same::value }; - static_assert(formattable_char, "mixing character types is disallowed"); - // Formatting of arbitrary pointers is disallowed. If you want to format a // pointer cast it to `void*` or `const void*`. In particular, this forbids // formatting of `[const] volatile char*` printed as bool by iostreams.