Skip to content

Commit 7a9392b

Browse files
Fix some nit comments and format errors to split the static assert across multiple lines
1 parent d174022 commit 7a9392b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/fmt/format.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,8 @@ FMT_CONSTEXPR auto fill_n(OutputIt out, Size count, const T& value)
553553
template <typename T, typename Size>
554554
FMT_CONSTEXPR20 auto fill_n(T* out, Size count, char value) -> T* {
555555
if (is_constant_evaluated()) return fill_n<T*, Size, T>(out, count, value);
556-
static_assert(1 == sizeof(T), "sizeof(T) must be 1 to use char for initialization");
556+
static_assert(sizeof(T) == 1,
557+
"sizeof(T) must be 1 to use char for initialization");
557558
std::memset(out, value, to_unsigned(count));
558559
return out + count;
559560
}

0 commit comments

Comments
 (0)