Skip to content

🚸 Improve help message for format_result conversion #249

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 11, 2025

Problem:

  • When converting a format_result to a ct_string, if it has runtime format arguments, the message does not make the contents of the format_result clear.

Solution:

  • Use a better assertion.

Note:

  • We cannot use a formatted STATIC_ASSERT here of course, because ct_format provides the mechanism for STATIC_ASSERT.

Problem:
- When converting a `format_result` to a `ct_string`, if it has runtime format
  arguments, the message does not make the contents of the `format_result` clear.

Solution:
- Use a better assertion.

Note:
- We cannot use a formatted `STATIC_ASSERT` here of course, because `ct_format`
  provides the mechanism for `STATIC_ASSERT`.
@elbeno elbeno enabled auto-merge July 11, 2025 13:54
@elbeno elbeno merged commit 3cb1a05 into intel:main Jul 11, 2025
82 of 84 checks passed
@elbeno elbeno deleted the better-format-error branch July 11, 2025 15:07
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