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

Request: Compile Time failure instead of Runtime failure #33

Open
Stefl1504 opened this issue Aug 9, 2021 · 0 comments
Open

Request: Compile Time failure instead of Runtime failure #33

Stefl1504 opened this issue Aug 9, 2021 · 0 comments

Comments

@Stefl1504
Copy link

Stefl1504 commented Aug 9, 2021

To make it easier to capture misconfiguration or lacking support of certain instrinsics, I would like to suggest the following change:

instead of throwing std::runtime_error when using unsupported intrinsics use static_assert

rough example:
https://godbolt.org/z/W6GPdGEhc

possible downside: it is not possible to provide a custom error message as static_assert requires a string literal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants