From 4e3f38105866c5ffb90cc01ceb72ea7f4bb98ad5 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 2 Apr 2023 07:13:30 -0700 Subject: [PATCH] Update changelog --- ChangeLog.rst | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index 8adb7e56..b4d3c487 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,9 +1,99 @@ 10.0.0 - TBD ------------ +* Made ``format_as`` work with any user-defined type and not just enums. + For example (`godbolt `__): + + .. code:: c++ + + #include + + struct floaty_mc_floatface { + double value; + }; + + auto format_as(floaty_mc_floatface f) { return f.value; } + + int main() { + fmt::print("{:8}\n", floaty_mc_floatface{0.42}); // prints " 0.42" + } + +* Implemented formatting of subseconds + (`#3117 `_, + `#3115 `_). + For example (`godbolt `__): + + .. code:: c++ + + #include + + int main() { + // prints 01.234567 + fmt::print("{:%S}\n", std::chrono::microseconds(1234567)); + } + + Thanks `@patrickroocks (Patrick Roocks) `_. + +* Added support for ``std::utc_time`` + (`#3098 `_, + `#3110 `_). + Thanks `@patrickroocks (Patrick Roocks) `_. + +* Switched formatting of ``std::chrono::system_clock`` from local time to UTC + for compatiblity with the standard + (`#3199 `_, + `#3230 `_). + Thanks `@ned14 (Niall Douglas) `_. + +* Fixed formatting of time points before the epoch + (`#3117 `_, + `#3261 `_). + For example (`godbolt `__): + + .. code:: c++ + + #include + + int main() { + auto t = std::chrono::system_clock::from_time_t(0) - + std::chrono::milliseconds(250); + fmt::print("{:%S}\n", t); // prints 59.750000000 + } + + Thanks `@ShawnZhong (Shawn Zhong) `_. + +* Improved compile-time checks of named arguments + (`#3105 `_, + `#3214 `_). + Thanks `@rbrich (Radek Brich) `_. + +* Removed the deprecated ``FMT_DEPRECATED_OSTREAM``. + +* Improved documentation + (`#3108 `_, + `#3169 `_). + +* Improved build configuration + (`#3189 `_). + +* Fixed a regression in handling empty format specifiers after a colon (`{:}`) + (`#3086 `_). + * Fixed formatting of volatile variables (`#3068 `_). +* Fixed various warnings and compilation issues + (`#3092 `_, + `#3096 `_, + `#3128 `_, + `#3140 `_, + `#3149 `_, + `#3154 `_, + `#3163 `_, + `#3178 `_). + Thanks `@phprus (Vladislav Shchapov) `_, + `@sergiud (Sergiu Deitsch) `_. + 9.1.0 - 2022-08-27 ------------------