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

enum class underlying types conversions #3397

Open
Hind-M opened this issue Aug 8, 2024 · 0 comments
Open

enum class underlying types conversions #3397

Hind-M opened this issue Aug 8, 2024 · 0 comments

Comments

@Hind-M
Copy link
Member

Hind-M commented Aug 8, 2024

  • Replace in codebase any conversions of existing enum classes by using ternary operator or static_cast by implementing C++23 utility function std::to_underlying.

cf. https://www.cppstories.com/2024/enum-improvements/#c23-stdto_underlying
cf. #3396 for an example of concerned enum class

  • Add a comment to note that it should be replaced with the one from the standard library when supporting C++23.
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

No branches or pull requests

1 participant