From 9bb406d78d209641de8deb6429c168ac9f05b461 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 31 May 2021 07:37:10 -0700 Subject: [PATCH] Update changelog --- ChangeLog.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ChangeLog.rst b/ChangeLog.rst index 673935f2..8bfec5b0 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -86,6 +86,18 @@ (a C++20 feature) which is available in GCC 9.3+. Thanks `@alexezeder (Alexey Ochapov) `_. +* Format string compilation now requires ``format`` functions of ``formatter`` + specializations for user-defined types to be ``const``: + + .. code:: c++ + + template <> struct fmt::formatter: formatter { + template + auto format(my_type c, FormatContext& ctx) const { // Note const here. + // ... + } + }; + * Added UDL-based named argument support to format string compilation (`#2243 `_, `#2281 `_). For example: