-
Notifications
You must be signed in to change notification settings - Fork 3.5k
C++ Feature: Mutable union getters #8852
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
C++ Feature: Mutable union getters #8852
Conversation
|
seems like generate_code.py runs differently on windows... |
This reverts commit 45e352b.
|
Remind me why we need these mutable accessors? The things returned are FlatBuffer buffer pointer types, those should typically never be needed non-const. |
|
This is just matching other patterns found in the c++ generated code. There is a mutable void* accessor and non mutable type based accessors. This data is accessible in this way but both through a convenient accessor. This or is a precursor to my std variant pr |
|
Ah yes, I see that now. LGTM. |
Adds mutable union accessors ahead of a fix for #8761