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.