diff --git a/include/fmt/format.h b/include/fmt/format.h index ebaac1a1..a854cd52 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3913,6 +3913,11 @@ auto write(OutputIt out, const T* value, const format_specs& specs = {}, return write_ptr(out, bit_cast(value), &specs); } +template +auto write(OutputIt out, nullptr_t) -> OutputIt { + return write(out, static_cast(nullptr)); +} + template ::value == type::custom_type &&