Skip to content

✨ Add CT_WRAP #243

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

✨ Add CT_WRAP #243

wants to merge 1 commit into from

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 3, 2025

Problem:

  • It is useful to have a macro that wraps a potentially-constexpr-usable value in stdx::ct when possible, to preserve its constexpr properties.

Solution:

  • Add CT_WRAP that does this.

Notes:

Problem:
- It is useful to have a macro that wraps a potentially-`constexpr`-usable value
  in `stdx::ct` when possible, to preserve its `constexpr` properties.

Solution:
- Add `CT_WRAP` that does this.

Notes:
- See intel/compile-time-init-build#743 for some parts
  of this in CIB; this part probably belongs in stdx.
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.

1 participant