From b48ffc14a47d2cbda9c99bbd3c503f86a3015282 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 25 Jul 2019 18:44:40 +0300 Subject: [PATCH] Update changelog --- ChangeLog.rst | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index 822afd08..355b4449 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -24,9 +24,51 @@ prints "value = 4,2". +* Introduced ``fmt::prepare`` function that allows precompilation of format + strings: + + .. code:: c++ + + auto f = fmt::prepare("{}"); + std::string s = f.format(42); // can be called multiple times to format + // different values + + This API is experimental and will likely change in the next minor release. + + Thanks `@stryku (Mateusz Janek) `_. + +* Fixed handling of dynamic width in chrono formatter: + + .. code:: c++ + + auto s = fmt::format("{0:{1}%H:%M:%S}", std::chrono::seconds(12345), 12); + // ^ width argument index ^ width + // s == "03:25:45 " + + Thanks Howard Hinnant. + +* Added `fmt::format` and `fmt::vformat` overloads that take `text_style` + (`#993 `_, + `#994 `_): + + .. code:: c++ + + #include + + std::string message = fmt::format(fmt::emphasis::bold | fg(fmt::color::red), + "The answer is {}.", 42); + + Thanks `@Naios (Denis Blank) `_. + * Stopped setting ``CMAKE_BUILD_TYPE`` if fmt is a subproject (`#1081 `_). +* Various fixes (`#980 `_, + `#995 `_ + `#998 `_). + Thanks `@DanielaE (Daniela Engert) `_, + `@mwinterb `_. + 5.3.0 - 2018-12-28 ------------------