Skip to content

🎨 Improve STATIC_ASSERT #246

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 10, 2025

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 10, 2025

Problem:

  • Now that STDX_CT_FORMAT exists, STATIC_ASSERT is clunky when it still has to wrap arguments with CX_VALUE.
  • Docs for the latest ct_string and ct_format functionality are lacking.

Solution:

  • Use STDX_CT_FORMAT inside STATIC_ASSERT for a better experience.
  • Update the ct_string and ct_format docs.

Problem:
- Now that `STDX_CT_FORMAT` exists, `STATIC_ASSERT` is clunky when it still has to
  wrap arguments with `CX_VALUE`.
- Docs for the latest `ct_string` and `ct_format` functionality are lacking.

Solution:
- Use `STDX_CT_FORMAT` inside `STATIC_ASSERT` for a better experience.
- Update the `ct_string` and `ct_format` docs.
Copy link
Contributor

@lukevalenty lukevalenty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome 😎

@lukevalenty lukevalenty enabled auto-merge July 10, 2025 18:06
@lukevalenty lukevalenty merged commit 2e5c17f into intel:main Jul 10, 2025
42 checks passed
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