From c1f101af137df235ad64c371208049b427a7cab1 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 25 Nov 2024 09:26:40 +0200 Subject: [PATCH] make example compatible with fmt 11 (#3130) --- example/example.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.cpp b/example/example.cpp index e65dc08a..a682cf99 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -258,7 +258,7 @@ struct my_type { #ifndef SPDLOG_USE_STD_FORMAT // when using fmtlib template <> struct fmt::formatter : fmt::formatter { - auto format(my_type my, format_context &ctx) -> decltype(ctx.out()) { + auto format(my_type my, format_context &ctx) const -> decltype(ctx.out()) { return fmt::format_to(ctx.out(), "[my_type i={}]", my.i); } };