mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 15:28:35 +00:00
Cleanup write
This commit is contained in:
parent
0c3dd5ddd7
commit
72785a3aba
@ -3456,11 +3456,8 @@ FMT_CONSTEXPR auto write(OutputIt out, Char value) -> OutputIt {
|
|||||||
template <typename Char, typename OutputIt>
|
template <typename Char, typename OutputIt>
|
||||||
FMT_CONSTEXPR_CHAR_TRAITS auto write(OutputIt out, const Char* value)
|
FMT_CONSTEXPR_CHAR_TRAITS auto write(OutputIt out, const Char* value)
|
||||||
-> OutputIt {
|
-> OutputIt {
|
||||||
if (!value) {
|
if (value) return write(out, basic_string_view<Char>(value));
|
||||||
throw_format_error("string pointer is null");
|
throw_format_error("string pointer is null");
|
||||||
} else {
|
|
||||||
out = write(out, basic_string_view<Char>(value));
|
|
||||||
}
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user