Skip to content

Conversation

@jtdavis777
Copy link
Collaborator

Adds mutable union accessors ahead of a fix for #8761

@jtdavis777
Copy link
Collaborator Author

seems like generate_code.py runs differently on windows...

@jtdavis777 jtdavis777 added the ready-for-merge This PR has been approved by a maintainer and is ready for merge by a code owner label Dec 20, 2025
@aardappel
Copy link
Collaborator

Remind me why we need these mutable accessors? The things returned are FlatBuffer buffer pointer types, those should typically never be needed non-const.

@jtdavis777
Copy link
Collaborator Author

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

@aardappel
Copy link
Collaborator

Ah yes, I see that now. LGTM.

@jtdavis777 jtdavis777 merged commit 7cb0bcb into google:master Dec 21, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema ready-for-merge This PR has been approved by a maintainer and is ready for merge by a code owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants