-
Notifications
You must be signed in to change notification settings - Fork 1.2k
refactor: implement c++23 inspired ToUnderlying #5210
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
Conversation
see std::to_underlying and https://en.cppreference.com/w/cpp/types/underlying_type Then, we use this instead of static_casts for enums -> underlying type
d425747 to
36776d3
Compare
|
I'm really confused why this build fails... Please help 🙈 |
|
Oh 🙈 I'll do that tonight 😂 |
|
linter complains |
resolved |
|
utACK |
UdjinM6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, utACK
Issue being fixed or feature implemented
Avoid lots of static_cast's from enums to underlying types. Communicate intention better
What was done?
implement c++23 inspired ToUnderlying, then see std::to_underlying and https://en.cppreference.com/w/cpp/types/underlying_type; Then, we use this instead of static_casts for enums -> underlying type
How Has This Been Tested?
make check
Breaking Changes
None
Checklist:
For repository code-owners and collaborators only