diff --git a/ChangeLog.rst b/ChangeLog.rst index 9758932e..c0afc324 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,6 +1,20 @@ 8.0.0 - TBD ----------- +* Enabled compile-time check by default. For example + + .. code:: c++ + + #include + + int main() { + fmt::print("{:d}", "I am not a number"); + } + + gives a compile-time error on compilers with C++20 ``consteval`` support + (gcc 10+, clang 11+) because ``d`` is not a valid format specifier for a + string. + * Added compile-time formatting (`#2019 `_, `#2044 `_, @@ -133,7 +147,8 @@ `#2309 `_, `#2318 `_, `#2324 `_, - `#2332 `_). + `#2332 `_, + `#2340 `_). Thanks `@DanielaE (Daniela Engert) `_. * Made symbols private by default reducing shared library size @@ -170,6 +185,21 @@ Thanks `@kamibo (Camille Bordignon) `_. +* Implemented the default format for ``std::chrono::system_clock`` + (`#2319 `_, + `#2345 `_). For example: + + .. code:: c++ + + #include + + int main() { + fmt::print("{}", std::chrono::system_clock::now()); + } + + prints "2021-06-18 15:22:00" (the output depends on the current date and + time). Thanks `@sunmy2019 `_. + * Made more chrono specifiers locale independent by default. Use the ``'L'`` specifier to get localized formatting. For example: @@ -184,6 +214,12 @@ fmt::print("{:L}\n", monday); // prints "пн" } +* Improved locale handling in chrono formatting ( + `#2337 `_, + `#2349 `_, + `#2350 `_). + Thanks `@phprus (Vladislav Shchapov) `_. + * Deprecated ``fmt/locale.h`` moving the formatting functions that take a locale to ``fmt/format.h`` (``char``) and ``fmt/xchar`` (other overloads). This doesn't introduce a dependency on ```` so there is virtually no @@ -536,7 +572,9 @@ `#2323 `_, `#2328 `_, `#2329 `_, - `#2333 `_). + `#2333 `_, + `#2338 `_, + `#2341 `_). Thanks `@darklukee `_, `@fagg (Ashton Fagg) `_, `@killerbot242 (Lieven de Cock) `_, @@ -569,7 +607,9 @@ `@mwinterb `_, `@sven-herrmann `_, `@jmelas (John Melas) `_, - `@twoixter (Jose Miguel Pérez) `_. + `@twoixter (Jose Miguel Pérez) `_, + `@crbrz `_, + `@upsj (Tobias Ribizel) `_. * Improved documentation (`#1986 `_, @@ -591,9 +631,12 @@ `#2196 `_, `#2217 `_, `#2247 `_, - `#2256 `_). - Thanks `@jgopel (Jonathan Gopel) `_ and - `@alexezeder (Alexey Ochapov) `_. + `#2256 `_, + `#2336 `_, + `#2346 `_). + Thanks `@jgopel (Jonathan Gopel) `_, + `@alexezeder (Alexey Ochapov) `_ and + `@DanielaE (Daniela Engert) `_. 7.1.3 - 2020-11-24 ------------------