Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed May 31, 2021
1 parent 11a14db commit 9bb406d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@
(a C++20 feature) which is available in GCC 9.3+.
Thanks `@alexezeder (Alexey Ochapov) <https://github.com/alexezeder>`_.

* Format string compilation now requires ``format`` functions of ``formatter``
specializations for user-defined types to be ``const``:

.. code:: c++

template <> struct fmt::formatter<my_type>: formatter<string_view> {
template <typename FormatContext>
auto format(my_type c, FormatContext& ctx) const { // Note const here.
// ...
}
};

* Added UDL-based named argument support to format string compilation
(`#2243 <https://github.com/fmtlib/fmt/pull/2243>`_,
`#2281 <https://github.com/fmtlib/fmt/pull/2281>`_). For example:
Expand Down

0 comments on commit 9bb406d

Please sign in to comment.