-
Notifications
You must be signed in to change notification settings - Fork 42
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
enums used with boost::mpl::integral_c may need to be extended. #24
Comments
Actually the easiest workaround is to add an underlying type (e.g. enum example : int { zero };
constexpr example x{static_cast<example>(-1)}; |
Can't add |
Something like this
works, but then |
pdimov
added a commit
that referenced
this issue
Nov 16, 2022
…errors when constructing out of range enums (refs #24, boostorg/mpl#69)
Switching to boost::integral_constant seems to work and is the least intrusive fix. |
This was referenced Nov 16, 2022
Closed
Applied 50a1eae to develop. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue suggests that the enums being used with mpl::integral_c need two additional cases. The problem was detected by the newest Clang in trunk.
The text was updated successfully, but these errors were encountered: