From da9d9385b9bcdd4f252a018cb06ee14ceffa225d Mon Sep 17 00:00:00 2001 From: David Given Date: Fri, 8 Nov 2024 21:32:59 +0100 Subject: [PATCH] Another try at fixing the custom formatter. --- lib/data/sector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/data/sector.h b/lib/data/sector.h index c48fa3d4..a874e61c 100644 --- a/lib/data/sector.h +++ b/lib/data/sector.h @@ -93,10 +93,10 @@ struct Sector : public LogicalLocation template <> struct fmt::formatter : formatter { - auto format(Sector::Status status, format_context& ctx) + auto format(Sector::Status status, format_context& ctx) const { - return formatter::format( - Sector::statusToString(status), ctx); + return format_to(ctx.out(), "{}", + Sector::statusToString(status)); } };