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

Implement iterators for JsonArray: #35852

Merged
merged 6 commits into from
Dec 6, 2019
Merged

Conversation

BevapDin
Copy link
Contributor

@BevapDin BevapDin commented Dec 4, 2019

SUMMARY: Infrastructure "Implement iterators for JsonArray"

This allows to iterate over a JsonArray with a range-based for loop.

Changes some code to use the form of iterating. This now also works with unnamed JsonArray instances, e.g. for( ... : foo.get_array( ... ) ).

This allows to iterate over a `JsonArray` with a range-based for loop.

Changes some code to use the form of iterating. This now also works with unnamed `JsonArray` instances, e.g. `for( ... : foo.get_array( ... ) )`.
@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Dec 4, 2019
Functions take a copy of the JSON object, so the members in the original object are never visited and that is reported as error.
@ZhilkinSerg
Copy link
Contributor

Looks good for me, but clang and gcc 5.3 are going crazy.

Yes, I'm looking at you GCC 5.3.1.
@ZhilkinSerg ZhilkinSerg merged commit f04c6d5 into CleverRaven:master Dec 6, 2019
@BevapDin BevapDin deleted the rbw branch December 7, 2019 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants