Cleanup write

This commit is contained in:
Victor Zverovich 2022-12-30 13:53:55 -08:00
parent 0c3dd5ddd7
commit 72785a3aba

View File

@ -3456,11 +3456,8 @@ FMT_CONSTEXPR auto write(OutputIt out, Char value) -> OutputIt {
template <typename Char, typename OutputIt>
FMT_CONSTEXPR_CHAR_TRAITS auto write(OutputIt out, const Char* value)
-> OutputIt {
if (!value) {
if (value) return write(out, basic_string_view<Char>(value));
throw_format_error("string pointer is null");
} else {
out = write(out, basic_string_view<Char>(value));
}
return out;
}