fix return type in formatter for throws_on_move

This commit is contained in:
theomegacarrot 2023-03-17 14:50:47 -04:00
parent 0b52517e1f
commit 00d3c6adf9

View File

@ -107,7 +107,8 @@ struct throws_on_move {
}; };
template <> struct fmt::formatter<throws_on_move> : formatter<string_view> { template <> struct fmt::formatter<throws_on_move> : formatter<string_view> {
auto format(const throws_on_move&, format_context& ctx) const { auto format(const throws_on_move&, format_context& ctx) const
-> decltype(ctx.out()) {
string_view str("<throws_on_move>"); string_view str("<throws_on_move>");
return formatter<string_view>::format(str, ctx); return formatter<string_view>::format(str, ctx);
} }