Skip to content

Conversation

@reshilkin
Copy link
Contributor

We use patched libc++ which uses raw pointers as std::vector iterators.
Compiling flatbuffers against our libc++ results in attempt to decrement rvalue pointer here:

if (!(it == (--struct_def.fields.vec.end()))) { code += ", "; }

This PR changes the way of adding commas, so that we can remove decrement.

@github-actions github-actions bot added c++ codegen Involving generating code from schema php labels Aug 11, 2023
@dbaileychess dbaileychess merged commit 3c35a14 into google:master Sep 29, 2023
@dbaileychess
Copy link
Collaborator

Thanks!

jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
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 php

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants