-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement iterators for JsonArray: (#35852)
* Rename JsonArray::end member to avoid conflict later * Make some member functions of JsonArray const. * Use size_t instead of int as index value in JsonArray * 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( ... ) )`. * Fix test errors from unvisited JSON object members. Functions take a copy of the JSON object, so the members in the original object are never visited and that is reported as error. * Fix variable name collision in *some* compilers. Yes, I'm looking at you GCC 5.3.1.
- Loading branch information
1 parent
92c284c
commit f04c6d5
Showing
35 changed files
with
334 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.