diff --git a/ChangeLog.rst b/ChangeLog.rst index 55077ccb..d306cc2b 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -5,6 +5,22 @@ In particular this results in consistent rounding on all platforms and removing the ``s[n]printf`` fallback for decimal FP formatting. +* Compile-time floating point formatting now works without header-only mode. + For example (`godbolt `__): + + .. code:: c++ + + #include + #include + + consteval auto compile_time_dtoa(double value) -> std::array { + auto result = std::array(); + fmt::format_to(result.data(), FMT_COMPILE("{}"), value); + return result; + } + + constexpr auto answer = compile_time_itoa(0.42); + * Improved the implementation of `Dragonbox `_, the algorithm used for the default floating-point formatting @@ -12,6 +28,10 @@ `#2750 `_). Thanks `@jk-jeon (Junekey Jeon) `_. +* Made ``fmt::to_string`` work with ``__float128``. This uses the internal + FP formatter and works even on system without ``__float128`` support in + ``[s]printf``. + * Disabled automatic ``std::ostream`` insertion operator (``operator<<``) discovery when ``fmt/ostream.h`` is included to prevent ODR violations. You can get the old behavior by defining ``FMT_DEPRECATED_OSTREAM`` but this @@ -140,6 +160,8 @@ `#2701 `_). Thanks `@AlexGuteniev (Alex Guteniev) `_. +* Fixed Unicode handling when writing to an ostream. + * Implemented escaping of wide strings in ranges (`#2904 `_). Thanks `@phprus (Vladislav Shchapov) `_. @@ -178,6 +200,21 @@ checks (`#2760 `_). Thanks `@phprus (Vladislav Shchapov) `_. +* Removed the following deprecated APIs: ``_format``, ``arg_join``, + the ``format_to`` overload that takes a memory buffer, + ``[v]fprintf`` that takes an ``ostream``. + +* Removed the deprecated implicit conversion of ``[const] signed char*`` and + ``[const] unsigned char*`` to C strings. + +* Removed the deprecated ``fmt/locale.h``. + +* Replaced the deprecated ``fileno()`` with ``descriptor()`` in + ``buffered_file``. + +* Moved ``to_string_view`` to the ``detail`` namespace since it's an + implementation detail. + * Made access mode of a created file consistent with ``fopen`` by setting ``S_IWGRP`` and ``S_IWOTH`` (`#2733 `_).