Skip to content
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

Fix compiling idl_gen_php.cpp against certain STLs #8067

Merged
merged 2 commits into from Sep 29, 2023

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
49 checks passed
@dbaileychess
Copy link
Collaborator

Thanks!

candysonya pushed a commit to candysonya/flatbuffers that referenced this pull request Jan 8, 2024
Co-authored-by: Derek Bailey <derekbailey@google.com>
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.

None yet

2 participants