1
0
mirror of https://github.com/fmtlib/fmt.git synced 2025-03-13 10:13:42 +00:00

Update changelog

This commit is contained in:
Victor Zverovich 2021-05-27 07:06:13 -07:00
parent b9f2c27661
commit 7612f18dc8

@ -88,6 +88,9 @@
prints "0,42". prints "0,42".
* Fixed handling of the ``'+'`` specifier in localized formatting
(`#2133 <https://github.com/fmtlib/fmt/issues/2133>`_).
* Added support for the ``'s'`` format specifier that gives textual * Added support for the ``'s'`` format specifier that gives textual
representation of ``bool`` representation of ``bool``
(`#2109 <https://github.com/fmtlib/fmt/pull/2109>`_). For example: (`#2109 <https://github.com/fmtlib/fmt/pull/2109>`_). For example:
@ -103,6 +106,19 @@
prints "true". prints "true".
Thanks `@powercoderlol (Ivan Polyakov) <https://github.com/powercoderlol>`_. Thanks `@powercoderlol (Ivan Polyakov) <https://github.com/powercoderlol>`_.
* Made ``fmt::ptr`` work with function pointers
(`#2131 <https://github.com/fmtlib/fmt/pull/2131>`_). For example:
.. code:: c++
#include <fmt/format.h>
int main() {
fmt::print("my main: {}\n", fmt::ptr(main));
}
Thanks `@mikecrowe (Mike Crowe) <https://github.com/mikecrowe>`_.
* Fixed handling of empty format strings during format string compilation * Fixed handling of empty format strings during format string compilation
(`#2042 <https://github.com/fmtlib/fmt/issues/2042>`_): (`#2042 <https://github.com/fmtlib/fmt/issues/2042>`_):
@ -115,7 +131,22 @@
* Fixed handling of enums in ``fmt::to_string`` * Fixed handling of enums in ``fmt::to_string``
(`#2036 <https://github.com/fmtlib/fmt/issues/2036>`_). (`#2036 <https://github.com/fmtlib/fmt/issues/2036>`_).
* Fixed width computation. * Improved width computation
(`#2033 <https://github.com/fmtlib/fmt/issues/2033>`_). For example:
.. code:: c++
#include <fmt/core.h>
int main() {
fmt::print("{:-<10}{}\n", "你好", "世界");
fmt::print("{:-<10}{}\n", "hello", "world");
}
prints
.. image:: https://user-images.githubusercontent.com/576385/
119840373-cea3ca80-beb9-11eb-91e0-54266c48e181.png
* The experimental fast output stream (``fmt::ostream``) is now truncated by * The experimental fast output stream (``fmt::ostream``) is now truncated by
default for consistency with ``fopen``. For example: default for consistency with ``fopen``. For example:
@ -138,6 +169,9 @@
* Fixed writing to ``stdout`` when it is redirected to ``NUL`` on Windows * Fixed writing to ``stdout`` when it is redirected to ``NUL`` on Windows
(`#2080 <https://github.com/fmtlib/fmt/issues/2080>`_). (`#2080 <https://github.com/fmtlib/fmt/issues/2080>`_).
* Fixed exception propagation from iterators
(`#2097 <https://github.com/fmtlib/fmt/issues/2097>`_).
* Added ``fmt/args.h`` to the install target. * Added ``fmt/args.h`` to the install target.
* Added the ``FMT_MASTER_PROJECT`` CMake option to control build and install * Added the ``FMT_MASTER_PROJECT`` CMake option to control build and install
@ -145,6 +179,10 @@
(`#2100 <https://github.com/fmtlib/fmt/pull/2100>`_). (`#2100 <https://github.com/fmtlib/fmt/pull/2100>`_).
Thanks `@randomizedthinking <https://github.com/randomizedthinking>`_. Thanks `@randomizedthinking <https://github.com/randomizedthinking>`_.
* Improved build configuration
(`#2122 <https://github.com/fmtlib/fmt/pull/2122>`_).
Thanks `@ibaned (Dan Ibanez) <https://github.com/ibaned>`_.
* Fixed various warnings and compilation issues * Fixed various warnings and compilation issues
(`#2038 <https://github.com/fmtlib/fmt/issues/2038>`_, (`#2038 <https://github.com/fmtlib/fmt/issues/2038>`_,
`#2039 <https://github.com/fmtlib/fmt/issues/2039>`_, `#2039 <https://github.com/fmtlib/fmt/issues/2039>`_,
@ -156,13 +194,18 @@
`#2068 <https://github.com/fmtlib/fmt/pull/2068>`_, `#2068 <https://github.com/fmtlib/fmt/pull/2068>`_,
`#2073 <https://github.com/fmtlib/fmt/pull/2073>`_, `#2073 <https://github.com/fmtlib/fmt/pull/2073>`_,
`#2106 <https://github.com/fmtlib/fmt/pull/2106>`_, `#2106 <https://github.com/fmtlib/fmt/pull/2106>`_,
`#2107 <https://github.com/fmtlib/fmt/pull/2107>`_). `#2107 <https://github.com/fmtlib/fmt/pull/2107>`_,
`#2117 <https://github.com/fmtlib/fmt/pull/2117>`_,
`#2119 <https://github.com/fmtlib/fmt/pull/2119>`_,
`#2128 <https://github.com/fmtlib/fmt/pull/2128>`_).
Thanks `@yeswalrus (Walter Gray) <https://github.com/yeswalrus>`_, Thanks `@yeswalrus (Walter Gray) <https://github.com/yeswalrus>`_,
`@Finkman <https://github.com/Finkman>`_, `@Finkman <https://github.com/Finkman>`_,
`@HazardyKnusperkeks (Björn Schäpers) <https://github.com/HazardyKnusperkeks>`_, `@HazardyKnusperkeks (Björn Schäpers) <https://github.com/HazardyKnusperkeks>`_,
`@dkavolis (Daumantas Kavolis) <https://github.com/dkavolis>`_ `@dkavolis (Daumantas Kavolis) <https://github.com/dkavolis>`_
`@concatime (Issam Maghni) <https://github.com/concatime>`_, `@concatime (Issam Maghni) <https://github.com/concatime>`_,
`@chronoxor (Ivan Shynkarenka) <https://github.com/chronoxor>`_. `@chronoxor (Ivan Shynkarenka) <https://github.com/chronoxor>`_,
`@summivox (Yin Zhong) <https://github.com/summivox>`_,
`@yNeo <https://github.com/yNeo>`_.
* Improved documentation * Improved documentation
(`#2051 <https://github.com/fmtlib/fmt/pull/2051>`_, (`#2051 <https://github.com/fmtlib/fmt/pull/2051>`_,
@ -171,8 +214,9 @@
Thanks `@imba-tjd (谭九鼎) <https://github.com/imba-tjd>`_, Thanks `@imba-tjd (谭九鼎) <https://github.com/imba-tjd>`_,
`@0x416c69 (AlιAѕѕaѕѕιN) <https://github.com/0x416c69>`_. `@0x416c69 (AlιAѕѕaѕѕιN) <https://github.com/0x416c69>`_.
* Improved continuous integration * Continuous integration and test improvements
(`#2110 <https://github.com/fmtlib/fmt/pull/2110>`_). (`#2110 <https://github.com/fmtlib/fmt/pull/2110>`_,
`#2114 <https://github.com/fmtlib/fmt/pull/2114>`_).
Thanks `@alexezeder (Alexey Ochapov) <https://github.com/alexezeder>`_. Thanks `@alexezeder (Alexey Ochapov) <https://github.com/alexezeder>`_.
7.1.3 - 2020-11-24 7.1.3 - 2020-11-24
@ -446,8 +490,8 @@
Thanks `@Naios (Denis Blank) <https://github.com/Naios>`_. Thanks `@Naios (Denis Blank) <https://github.com/Naios>`_.
* Made the ``#`` specifier emit trailing zeros in addition to the decimal point * Made the ``'#'`` specifier emit trailing zeros in addition to the decimal
(`#1797 <https://github.com/fmtlib/fmt/issues/1797>`_). For example point (`#1797 <https://github.com/fmtlib/fmt/issues/1797>`_). For example
(`godbolt <https://godbolt.org/z/bhdcW9>`__): (`godbolt <https://godbolt.org/z/bhdcW9>`__):
.. code:: c++ .. code:: c++