Improve binary size

This commit is contained in:
Victor Zverovich
2021-05-21 08:50:35 -07:00
parent 128cbdeb2f
commit c5c968cb22
3 changed files with 31 additions and 26 deletions
+2 -1
View File
@@ -128,7 +128,8 @@ template <typename Char> struct formatter<std::error_code, Char> {
FMT_CONSTEXPR auto format(const std::error_code& ec, FormatContext& ctx) const
-> decltype(ctx.out()) {
auto out = ctx.out();
out = detail::write<Char>(out, to_string_view(ec.category().name()));
out = detail::write_bytes(out, ec.category().name(),
basic_format_specs<Char>());
out = detail::write<Char>(out, Char(':'));
out = detail::write<Char>(out, ec.value());
return out;