From e33c76a1c228428da23792f3da5bd40f192c416e Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 13 Sep 2025 08:17:13 -0700 Subject: [PATCH] Update changelog --- ChangeLog.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index b67f68c5..38414ce0 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -26,6 +26,27 @@ https://github.com/fmtlib/fmt/pull/4495). Thanks @arBmind, @tkhyn, @Mishura4, @anonymouspc and @autoantwort. +- Added `FMT_STATIC_FORMAT` that allows formatting into a string of the exact + required size at compile time. + + For example: + + ```c++ + #include + + constexpr auto s = FMT_STATIC_FORMAT("{}", 42); + ``` + + compiles to just + + ```s + __ZL1s: + .asciiz "42" + ``` + + It can be accessed as a C string with `s.c_str()` or as a string view with + `s.str()`. + - Switched to using estimated display width in precision. For example: ```c++