Skip to content

🚸 Improve help message for format_result conversion#249

Merged
elbeno merged 1 commit intointel:mainfrom
elbeno:better-format-error
Jul 11, 2025
Merged

🚸 Improve help message for format_result conversion#249
elbeno merged 1 commit intointel:mainfrom
elbeno:better-format-error

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