mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 06:36:02 +00:00
Update changelog
This commit is contained in:
parent
47c8f63d02
commit
305747d440
41
ChangeLog.md
41
ChangeLog.md
@ -1,5 +1,9 @@
|
||||
# 10.2.0 - TBD
|
||||
|
||||
- Added support for the `%j` specifier (the number of days) for
|
||||
`std::chrono::duration` (https://github.com/fmtlib/fmt/issues/3643,
|
||||
https://github.com/fmtlib/fmt/pull/3732). Thanks @intelfx.
|
||||
|
||||
- Added support for the chrono suffix for days and changed
|
||||
the suffix for minutes from "m" to the correct "min"
|
||||
(https://github.com/fmtlib/fmt/pull/3664).
|
||||
@ -19,6 +23,26 @@
|
||||
(https://github.com/fmtlib/fmt/issues/3725,
|
||||
https://github.com/fmtlib/fmt/pull/3727). Thanks @cschreib.
|
||||
|
||||
- Added a formatter for `std::source_location`
|
||||
(https://github.com/fmtlib/fmt/pull/3730). For example
|
||||
([godbolt](https://godbolt.org/z/YajfKjhhr)):
|
||||
|
||||
```c++
|
||||
#include <fmt/chrono.h>
|
||||
|
||||
int main() {
|
||||
fmt::print("{}\n", std::source_location::current());
|
||||
}
|
||||
```
|
||||
|
||||
prints
|
||||
|
||||
```
|
||||
/app/example.cpp:5:51: int main()
|
||||
```
|
||||
|
||||
Thanks @felix642.
|
||||
|
||||
- Added a formatter for `std::bitset`
|
||||
(https://github.com/fmtlib/fmt/pull/3660).
|
||||
For example ([godbolt](https://godbolt.org/z/bdEaGeYxe)):
|
||||
@ -34,6 +58,23 @@
|
||||
|
||||
Thanks @muggenhor.
|
||||
|
||||
- Added the generic representation (`g`) to `std::filesystem::path`
|
||||
(https://github.com/fmtlib/fmt/issues/3715,
|
||||
https://github.com/fmtlib/fmt/pull/3729). For example:
|
||||
|
||||
```c++
|
||||
#include <filesystem>
|
||||
#include <fmt/std.h>
|
||||
|
||||
int main() {
|
||||
fmt::print("{:g}\n", std::filesystem::path("C:\\foo"));
|
||||
}
|
||||
```
|
||||
|
||||
prints `"C:/foo"` on Windows.
|
||||
|
||||
Thanks @js324.
|
||||
|
||||
- Added synchronization with the underlying output stream when writing to
|
||||
the Windows console
|
||||
(https://github.com/fmtlib/fmt/pull/3668,
|
||||
|
Loading…
Reference in New Issue
Block a user