]> git.ipfire.org Git - ipfire-2.x.git/commit
fmt: Update to version 11.2.0
authorAdolf Belka <adolf.belka@ipfire.org>
Sat, 17 May 2025 11:41:41 +0000 (13:41 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 May 2025 15:02:37 +0000 (15:02 +0000)
commitca35133b416be3306ea7e1a7be93f294b7ccd339
treede267f5bb87efd4c656bf1e04e4998130c2be28e
parent593ce447494d67f09a005544449eabe222ff958f
fmt: Update to version 11.2.0

- Update from version 11.1.3 to 11.2.0
- Update of rootfile
- Changelog
    11.2.0
Added the s specifier for std::error_code. It allows formatting an error
 message as a string. For example:
#include <fmt/std.h>
int main() {
  auto ec = std::make_error_code(std::errc::no_such_file_or_directory);
  fmt::print("{:s}\n", ec);
}
prints
No such file or directory
 (The actual message is platform-specific.)
Fixed formatting of std::chrono::local_time and tm (#3815, #4350). For example
 (godbolt):
#include <fmt/chrono.h>
int main() {
  std::chrono::zoned_time zt(
    std::chrono::current_zone(),
    std::chrono::system_clock::now());
  fmt::print("{}", zt.get_local_time());
}
 is now formatted consistenly across platforms.
Added diagnostics for cases when timezone information is not available. For
 example:
fmt::print("{:Z}", std::chrono::local_seconds());
 now gives a compile-time error.
Deprecated fmt::localtime in favor of std::localtime.
Fixed compilation with GCC 15 and C++20 modules enabled (#4347). Thanks @tkhyn.
Fixed handling of named arguments in format specs (#4360, #4361). Thanks
 @dinomight.
Added error reporting for duplicate named arguments (#4367). Thanks @dinomight.
Fixed formatting of long with FMT_BUILTIN_TYPES=0 (#4375, #4394).
Optimized text_style using bit packing (#4363). Thanks @LocalSpook.
Added support for incomplete types (#3180, #4383). Thanks @LocalSpook.
Fixed a flush issue in fmt::print when using libstdc++ (#4398).
Fixed fmt::println usage with FMT_ENFORCE_COMPILE_STRING and legacy
 compile-time checks (#4407). Thanks @madmaxoft.
Removed legacy header fmt/core.h from docs (#4421, #4422). Thanks
 @krzysztofkortas.
Worked around limitations of __builtin_strlen during constant evaluation
 (#4423, #4429). Thanks @brevzin.
Worked around a bug in MSVC v141 (#4412, #4413). Thanks @hirohira9119.
Removed the fmt_detail namespace (#4324).
Removed specializations of std::is_floating_point in tests (#4417).
Fixed a CMake error when setting CMAKE_MODULE_PATH in the pedantic mode
 (#4426). Thanks @rlalik.
Updated the Bazel config (#4400). Thanks @Vertexwahn.
    11.1.4
    Fixed ABI compatibility with earlier 11.x versions on Windows (#4359).
    Improved the logic of switching between fixed and exponential format for float (#3649).
    Moved is_compiled_string to the public API (#4342). Thanks @SwooshyCueb.
    Simplified implementation of operator""_cf (#4349). Thanks @LocalSpook.
    Fixed __builtin_strlen detection (#4329). Thanks @LocalSpook.
    Fixed handling of BMI paths with the Ninja generator (#4344). Thanks @tkhyn.
    Fixed gcc 8.3 compile errors (#4331, #4336). Thanks @sergiud.
    Fixed a bogus MSVC warning (#4356). Thanks @dinomight.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/packages/fmt
lfs/fmt