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

Use Compile-Time Constexpr If #2035

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

Conversation

leimao
Copy link
Contributor

@leimao leimao commented Jan 9, 2025

This runtime if can be removed at compile-time.

@ccecka
Copy link

ccecka commented Jan 9, 2025

If size<2>(tCrA) is known at compile-time, this will already be elided by the compiler.

The only thing this does is require that it is known at compile-time, which may be attractive but is certainly overly restrictive.

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