mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-13 22:50:05 +00:00
Update changelog
This commit is contained in:
parent
11a14db286
commit
9bb406d78d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user