Skip to content

Conversation

@xokdvium
Copy link
Contributor

Motivation

Once again found by an automated migration to std::format. I've tested that boost::format works fine with std::string_view arguments. https://godbolt.org/z/cqPeszxcP

Context

More of the same stuff as in #13086 and #13087.
Found while testing out an automated migration tool for #10294.
Looks like switching to std::format is indeed worth it for catching such subtle bugs at compile time.

cc @Ericson2314, @Mic92


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@xokdvium xokdvium requested a review from edolstra as a code owner April 25, 2025 10:22
Once again found by an automated migration to `std::format`.
I've tested that boost::format works fine with `std::string_view`
arguments.
@xokdvium xokdvium force-pushed the file-content-address-fmt-string branch from 0964f96 to 9fff868 Compare April 25, 2025 10:35
@edolstra edolstra merged commit 3f811c2 into NixOS:master Apr 25, 2025
12 checks passed
@edolstra edolstra added the backport 2.28-maintenance Automatically creates a PR against the branch label Apr 25, 2025
mergify bot added a commit that referenced this pull request Apr 25, 2025
…3094

libutil: Add missing format arguments to UsageError ctor (backport #13094)
@xokdvium xokdvium deleted the file-content-address-fmt-string branch April 25, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.28-maintenance Automatically creates a PR against the branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants