Compare commits

..

No commits in common. "873670ba3f9e7bc77ec2c1c94b04f1f8bef77e9f" and "141380172f05adff3cc4e565e577d73c4b9220d6" have entirely different histories.

2 changed files with 6 additions and 27 deletions

View File

@ -2,13 +2,6 @@
- Improved debug codegen.
- Improved C++20 module support
(https://github.com/fmtlib/fmt/pull/4083,
https://github.com/fmtlib/fmt/pull/4084,
https://github.com/fmtlib/fmt/pull/4152,
https://github.com/fmtlib/fmt/pull/4169).
Thanks @kamrann.
- Made `std::expected<void, E>` formattable
(https://github.com/fmtlib/fmt/issues/4145,
https://github.com/fmtlib/fmt/pull/4148).
@ -22,14 +15,13 @@
```
expected()
```
``
Thanks @phprus.
- Added support for `_BitInt` formatting when using clang
(https://github.com/fmtlib/fmt/issues/4007,
https://github.com/fmtlib/fmt/pull/4072,
https://github.com/fmtlib/fmt/pull/4176).
https://github.com/fmtlib/fmt/pull/4072).
For example ([godbolt](https://www.godbolt.org/z/KWjbWec5z)):
```c++
@ -49,13 +41,6 @@
(https://github.com/fmtlib/fmt/issues/4102,
https://github.com/fmtlib/fmt/pull/4103). Thanks @phprus.
- Added a formatter for `std::reference_wrapper`
(https://github.com/fmtlib/fmt/pull/4163,
https://github.com/fmtlib/fmt/pull/4164). Thanks @yfeldblum and @phprus.
- Added experimental padding support (glibc `strftime` extension) to `%m`, `%j`
and `%Y`. (https://github.com/fmtlib/fmt/pull/4161). Thanks @KKhanhH.
- Fixed an unreleased regression in transcoding of surrogate pairs
(https://github.com/fmtlib/fmt/issues/4094,
https://github.com/fmtlib/fmt/pull/4095). Thanks @phprus.
@ -64,9 +49,6 @@
(https://github.com/fmtlib/fmt/issues/4092,
https://github.com/fmtlib/fmt/pull/4093). Thanks @phprus.
- Made `std::iterator_traits<fmt::appender>` standard-conforming
(https://github.com/fmtlib/fmt/pull/4185). Thanks @CaseyCarter.
- Made it easier to reuse `formatter<std::string_view>` for types with implicit
conversion to `std::string_view` (https://github.com/fmtlib/fmt/issues/4036,
https://github.com/fmtlib/fmt/pull/4055). Thanks @Arghnews.
@ -77,8 +59,7 @@
- Made it possible to disable `<filesystem>` use via `FMT_CPP_LIB_FILESYSTEM`
for compatibility with some video game console SDKs, e.g. Nintendo Switch SDK
(https://github.com/fmtlib/fmt/issues/4257,
https://github.com/fmtlib/fmt/pull/4258,
https://github.com/fmtlib/fmt/pull/4259). Thanks @W4RH4WK and @phprus.
https://github.com/fmtlib/fmt/pull/4258). Thanks @W4RH4WK.
- Fixed compatibility with platforms that use 80-bit `long double`
(https://github.com/fmtlib/fmt/issues/4245,
@ -102,10 +83,8 @@
https://github.com/fmtlib/fmt/pull/4130,
https://github.com/fmtlib/fmt/pull/4131,
https://github.com/fmtlib/fmt/pull/4132,
https://github.com/fmtlib/fmt/pull/4159,
https://github.com/fmtlib/fmt/pull/4170,
https://github.com/fmtlib/fmt/pull/4188).
Thanks @torsten48, @Arghnews, @tinfoilboy, @aminya, @Ottani, @c4v4.
https://github.com/fmtlib/fmt/pull/4159).
Thanks @torsten48, @Arghnews, @tinfoilboy, aminya .
# 11.0.2 - 2024-07-20

View File

@ -891,7 +891,7 @@ class basic_memory_buffer : public detail::buffer<T> {
using memory_buffer = basic_memory_buffer<char>;
template <size_t SIZE>
FMT_NODISCARD auto to_string(const basic_memory_buffer<char, SIZE>& buf)
FMT_NODISCARD auto to_string(basic_memory_buffer<char, SIZE>& buf)
-> std::string {
auto size = buf.size();
detail::assume(size < std::string().max_size());