diff --git a/ChangeLog.rst b/ChangeLog.rst index d306cc2b..89f86b24 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,9 +1,9 @@ 9.0.0 - TBD ----------- -* Switched to the internal floating point formatter for all decimal formats. - In particular this results in consistent rounding on all platforms and - removing the ``s[n]printf`` fallback for decimal FP formatting. +* Switched to the internal floating point formatter for all decimal presentation + formats. In particular this results in consistent rounding on all platforms + and removing the ``s[n]printf`` fallback for decimal FP formatting. * Compile-time floating point formatting now works without header-only mode. For example (`godbolt `__): @@ -76,6 +76,12 @@ Note that ``fmt/std.h`` provides a ``formatter`` specialization for ``std::thread::id`` so you don't need to format it via ``std::ostream``. +* Deprecated implicit conversions of unscoped enums to integers for consistency + with scoped enums. + +* Added an argument-dependent lookup based ``format_as`` extension API to + simplify formatting of enums. + * Added experimental ``std::variant`` formatting support (`#2941 `_). For example (`godbolt `__): @@ -162,6 +168,23 @@ * Fixed Unicode handling when writing to an ostream. +* Added support for nested specifiers to range formatting + (`#2673 `_). + For example (`godbolt `__): + + .. code:: c++ + + #include + #include + + int main() { + fmt::print("{::#x}\n", std::vector{10, 20, 30}); + } + + prints ``[0xa, 0x14, 0x1e]``. + + Thanks `@BRevzin (Barry Revzin) `_. + * Implemented escaping of wide strings in ranges (`#2904 `_). Thanks `@phprus (Vladislav Shchapov) `_. @@ -331,7 +354,12 @@ `#2929 `_, `#2936 `_, `#2937 `_, - `#2938 `_). + `#2938 `_, + `#2951 `_, + `#2954 `_, + `#2957 `_, + `#2958 `_, + `#2960 `_). Thanks `@matrackif `_ `@Tobi823 (Tobias Hellmann) `_, `@ivan-volnov (Ivan Volnov) `_, @@ -351,7 +379,8 @@ `@Agga `_, `@madmaxoft (Mattes D) `_, `@JurajX (Juraj) `_, - `@phprus (Vladislav Shchapov) `_. + `@phprus (Vladislav Shchapov) `_, + `@Dani-Hub (Daniel Krügler) `_. 8.1.1 - 2022-01-06 ------------------ @@ -503,6 +532,10 @@ [" aan"] +* Added an experimental ``?`` specifier for escaping strings. + (`#2674 `_). + Thanks `@BRevzin (Barry Revzin) `_. + * Switched to JSON-like representation of maps and sets for consistency with Python's ``str.format``. For example (`godbolt `__):