Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
10.1.1
->10.2.1
Release Notes
fmtlib/fmt (fmt)
v10.2.1
Compare Source
https://github.com/fmtlib/fmt/issues/378537https://github.com/fmtlib/fmt/pull/3786ull/3786). Thanks @saraedum.
v10.2.0
Compare Source
Added support for the
%j
specifier (the number of days) forstd::chrono::duration
(https://github.com/fmtlib/fmt/issues/3643,https://github.com/fmtlib/fmt/pull/37323732). Thanks @intelfx.
Added support for the chrono suffix for days and changed
the suffix for minutes from "m" to the correct "mihttps://github.com/fmtlib/fmt/issues/3662uehttps://github.com/fmtlib/fmt/pull/3664mt/pull/3664).
For example (godbolt):
Thanks @Richardk2n.
Fixed an overflow in
std::chrono::time_point
formatting with large dateshttps://github.com/fmtlib/fmt/issues/372537https://github.com/fmtlib/fmt/pull/3727ull/3727). Thanks @cschreib.
Added a formatter for
std::source_location
https://github.com/fmtlib/fmt/pull/37303730).
For example (godbolt):
prints
Thanks @felix642.
Added a formatter for
std::bitset
https://github.com/fmtlib/fmt/pull/36603660).
For example (godbolt):
Thanks @muggenhor.
Added an experimental
nested_formatter
that provides an easy way ofapplying a formatter to one or more subobjects while automatically handling
width, fill and alignment. For example:
prints
Added the generic representation (
g
) tostd::filesystem::path
https://github.com/fmtlib/fmt/issues/371537https://github.com/fmtlib/fmt/pull/3729ull/3729). For example:
prints
"C:/foo"
on Windows.Thanks @js324.
Made
format_as
work with referenceshttps://github.com/fmtlib/fmt/pull/37393739). Thanks @tchaikov.
Fixed formatting of invalid UTF-8 with precision
https://github.com/fmtlib/fmt/issues/32843284).
Fixed an inconsistency between
fmt::to_string
andfmt::format
https://github.com/fmtlib/fmt/issues/36843684).
Disallowed unsafe uses of
fmt::styled
https://github.com/fmtlib/fmt/issues/36253625):
Pass
fmt::styled(...)
as a parameter instead.Added a null check when formatting a C string with the
s
specifierhttps://github.com/fmtlib/fmt/issues/37063706).
Disallowed the
c
specifier forbool
https://github.com/fmtlib/fmt/issues/372637https://github.com/fmtlib/fmt/pull/3734ull/3734). Thanks @js324.
Made the default formatting unlocalized in
fmt::ostream_formatter
forconsistency with the rest of the librahttps://github.com/fmtlib/fmt/issues/3460ues/3460).
Fixed localized formatting in bases other than decimal
https://github.com/fmtlib/fmt/issues/369336https://github.com/fmtlib/fmt/pull/3750ull/3750). Thanks @js324.
Fixed a performance regression in experimental
fmt::ostream::print
https://github.com/fmtlib/fmt/issues/36743674).
Added synchronization with the underlying output stream when writing to
the Windows consohttps://github.com/fmtlib/fmt/pull/3668ulhttps://github.com/fmtlib/fmt/issues/3688/ihttps://github.com/fmtlib/fmt/pull/3689ib/fmt/pull/3689).
Thanks @Roman-Koshelev and @dimztimz.
Changed to only export
format_error
when {fmt} is built as a sharedlibrahttps://github.com/fmtlib/fmt/issues/362636https://github.com/fmtlib/fmt/pull/3627ull/3627). Thanks @phprus.
Made
fmt::streamed
constexpr
.https://github.com/fmtlib/fmt/pull/36503650). Thanks @muggenhor.
Made
fmt::format_int
constexpr
https://github.com/fmtlib/fmt/issues/403140https://github.com/fmtlib/fmt/pull/4032ull/4032). Thanks @dixlorenz.
Enabled
consteval
on older versions of MSVChttps://github.com/fmtlib/fmt/pull/37573757). Thanks @phprus.
Added an option to build without
wchar_t
support on Windowshttps://github.com/fmtlib/fmt/issues/363136https://github.com/fmtlib/fmt/pull/3636ull/3636). Thanks @glebm.
Improved build and CI configuration
https://github.com/fmtlib/fmt/pull/367936https://github.com/fmtlib/fmt/issues/3701uehttps://github.com/fmtlib/fmt/pull/3702mthttps://github.com/fmtlib/fmt/pull/3749ib/fmt/pull/3749).
Thanks @jcar87, @pklima and @tchaikov.
Fixed various warnings, compilation and test issues
https://github.com/fmtlib/fmt/issues/360736https://github.com/fmtlib/fmt/pull/3610ulhttps://github.com/fmtlib/fmt/pull/3624mthttps://github.com/fmtlib/fmt/pull/3630ibhttps://github.com/fmtlib/fmt/pull/3634fmhttps://github.com/fmtlib/fmt/pull/3638cohttps://github.com/fmtlib/fmt/issues/3645b.https://github.com/fmtlib/fmt/issues/3646ithttps://github.com/fmtlib/fmt/pull/3647pshttps://github.com/fmtlib/fmt/pull/3652 hhttps://github.com/fmtlib/fmt/issues/3654 https://github.com/fmtlib/fmt/pull/366365https://github.com/fmtlib/fmt/issues/3670/3https://github.com/fmtlib/fmt/pull/3680ishttps://github.com/fmtlib/fmt/issues/3694fmhttps://github.com/fmtlib/fmt/pull/3695lihttps://github.com/fmtlib/fmt/pull/3699omhttps://github.com/fmtlib/fmt/issues/3705.chttps://github.com/fmtlib/fmt/issues/3710ubhttps://github.com/fmtlib/fmt/issues/3712gihttps://github.com/fmtlib/fmt/pull/3713tphttps://github.com/fmtlib/fmt/issues/3714 https://github.com/fmtlib/fmt/pull/3716,
https://github.com/fmtlib/fmt/pull/3723s/https://github.com/fmtlib/fmt/issues/3738ulhttps://github.com/fmtlib/fmt/issues/3740/phttps://github.com/fmtlib/fmt/pull/3741/fhttps://github.com/fmtlib/fmt/pull/3743fmhttps://github.com/fmtlib/fmt/issues/3745cohttps://github.com/fmtlib/fmt/pull/3747huhttps://github.com/fmtlib/fmt/pull/3748/ghttps://github.com/fmtlib/fmt/pull/3751tthttps://github.com/fmtlib/fmt/pull/3754 https://github.com/fmtlib/fmt/pull/37558,https://github.com/fmtlib/fmt/issues/376075https://github.com/fmtlib/fmt/pull/3762llhttps://github.com/fmtlib/fmt/issues/3763puhttps://github.com/fmtlib/fmt/pull/3764fmhttps://github.com/fmtlib/fmt/issues/3774lihttps://github.com/fmtlib/fmt/pull/3779/
format_as
converting struct totuple
no longer works fmtlib/fmt#3763,Fix wchar_t to char conversion warnings fmtlib/fmt#3764,
chrono-test failing on i386 and armhf on Ubuntu fmtlib/fmt#3774,
Consistently use
fmt::
when invokingformat_to
. fmtlib/fmt#3779).Thanks @danakj, @vinayyadav3016, @cyyever, @phprus, @qimiko, @saschasc,
@gsjaardema, @lazka, @Zhaojun-Liu, @carlsmedstad, @hotwatermorning,
@cptFracassa, @kuguma, @PeterJohnson, @H1X4Dev, @asantoni, @eltociear,
@msimberg, @tchaikov, @waywardmonkeys.
Improved documentation and README
https://github.com/fmtlib/fmt/issues/208620https://github.com/fmtlib/fmt/issues/3637uehttps://github.com/fmtlib/fmt/pull/3642mthttps://github.com/fmtlib/fmt/pull/3653ibhttps://github.com/fmtlib/fmt/pull/3655fmhttps://github.com/fmtlib/fmt/pull/3661cohttps://github.com/fmtlib/fmt/issues/3673b.https://github.com/fmtlib/fmt/pull/3677/ghttps://github.com/fmtlib/fmt/pull/3737pshttps://github.com/fmtlib/fmt/issues/3742tthttps://github.com/fmtlib/fmt/pull/3744
Fix README file table fmtlib/fmt#3744).
Thanks @idzm, @perlun, @joycebrum, @fennewald, @reinhardt1053, @GeorgeLS.
Updated CI dependencies
https://github.com/fmtlib/fmt/pull/361536https://github.com/fmtlib/fmt/pull/3622ulhttps://github.com/fmtlib/fmt/pull/3623mthttps://github.com/fmtlib/fmt/pull/3666ibhttps://github.com/fmtlib/fmt/pull/3696fmhttps://github.com/fmtlib/fmt/pull/3697cohttps://github.com/fmtlib/fmt/pull/3759huhttps://github.com/fmtlib/fmt/pull/3782/github.com/Bump actions/upload-artifact from 3.1.2 to 4.0.0 fmtlib/fmt#3782).
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.
This change is