Skip to content

Commit

Permalink
TimePrint: minor fixup for libfmt 10
Browse files Browse the repository at this point in the history
libfmt version 10 has difficulties formatting a `StringBuffer`, and we
need to help it by explicitly invoking the `c_str()` method.
  • Loading branch information
MaxKellermann committed May 15, 2023
1 parent 181b96d commit f869593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/TimePrint.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

0 comments on commit f869593

Please sign in to comment.