Skip to content

Improve diagnostics with C++26 constexpr exceptions #253

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
mingxwa opened this issue Feb 17, 2025 · 0 comments
Open

Improve diagnostics with C++26 constexpr exceptions #253

mingxwa opened this issue Feb 17, 2025 · 0 comments
Labels
enhancement New feature or request p3

Comments

@mingxwa
Copy link
Collaborator

mingxwa commented Feb 17, 2025

C++26 constexpr exceptions can also be considered here when the compiler implementations are widely available.

Relevant paper: https://wg21.link/p3557r0 (godbolt link: https://godbolt.org/z/Y1vPcn6Kr)

Adding constraints to the requires clause has the downside that when there are multiple overloads, the diagnostic messages are spammed with the "we tried this and that and none of them matched". constexpr exceptions don't have this issue.

Originally posted by @SidneyCogdill in #247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p3
Projects
None yet
Development

No branches or pull requests

1 participant