From f869593ac8913e52c711e974257bd6dc0d5dbf26 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 May 2023 20:59:58 +0200 Subject: [PATCH] TimePrint: minor fixup for libfmt 10 libfmt version 10 has difficulties formatting a `StringBuffer`, and we need to help it by explicitly invoking the `c_str()` method. --- NEWS | 1 + src/TimePrint.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e4bdd351e..4191ac0e8 100644 --- a/NEWS +++ b/NEWS @@ -48,6 +48,7 @@ ver 0.24 (not yet released) * remove Haiku support * remove Boost dependency * require libfmt 7 or later +* support libfmt 10 ver 0.23.12 (2023/01/17) * input diff --git a/src/TimePrint.cxx b/src/TimePrint.cxx index 5bf05f623..d47f3178b 100644 --- a/src/TimePrint.cxx +++ b/src/TimePrint.cxx @@ -20,5 +20,5 @@ time_print(Response &r, const char *name, return; } - r.Fmt(FMT_STRING("{}: {}\n"), name, s); + r.Fmt(FMT_STRING("{}: {}\n"), name, s.c_str()); }