mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-08 12:20:06 +00:00
Remove redundant check
This commit is contained in:
parent
a0328e1f9f
commit
2e3b6fbd9f
@ -2210,10 +2210,6 @@ template <typename Context> class value {
|
||||
FMT_ENABLE_IF(std::is_same<T, M>::value &&
|
||||
!std::is_integral<remove_cvref_t<T>>::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<T, unformattable_char>::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.
|
||||
|
Loading…
Reference in New Issue
Block a user