-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
feat(C++): Support underlying_type for union #7954
Conversation
f9c02b9
to
197a4c8
Compare
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.
The last thing I think is evolution test. It should be invalid to change the backing type of a union. Can you add this as well?
@dbaileychess Hi, I've added evolution tests for enum / union underlying type changes |
Great! Thanks for the multiple edits. |
Hi @sssooonnnggg , would you please briefly comment what is this change about? I see no description at all in the PR. Thanks |
Hi @jmillan , the default union implementation use a single byte to store union associative enums, which limits union count must smaller than 256 , this feature allow union to specify an underlying type to store union associative enums with arbitrary integer type. For example:
|
* feat(C++): support underlying type for union * chore: add conform checks for underlying type changes
* feat(C++): support underlying type for union * chore: add conform checks for underlying type changes
No description provided.