Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct number of arguments for fmt string in processors #1060

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Oct 9, 2023

Briefly, what does this PR introduce?

In C++20 / fmt-10.1.0 the format string is constexpr and parsed on compilation time. That means that format string mismatches with the number of arguments are now compilation errors. This fixes (the only) two such cases.

What kind of change does this PR introduce?

  • Bug fix (issue: incomplete C++20 / fmt-10 support)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.

In C++20 / fmt-10.1.0 the format string is constexpr and parsed on compilation
time. That means that format string mismatches with the number arguments are
now compilation errors. This fixes (the only) two such cases.
@wdconinc wdconinc added this pull request to the merge queue Oct 9, 2023
@wdconinc wdconinc temporarily deployed to github-pages October 9, 2023 01:08 — with GitHub Actions Inactive
Merged via the queue into main with commit cea19eb Oct 9, 2023
@wdconinc wdconinc deleted the constexpr-fmt-fixes branch October 9, 2023 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants