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: