-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure array_type has front() method + fix array_type on jsoncpp (#361)
* Use operator[] instead of front to support jsoncpp Replace the `front()` with `[0]` as front is not supported by jsoncpp on array types. Signed-off-by: Omar Mohamed <[email protected]> * Revert "Use operator[] instead of front to support jsoncpp" This reverts commit dfa7d29. * Implement `front()` in jsoncpp array_type Signed-off-by: Omar Mohamed <[email protected]> * Check if array_type has a front() method Signed-off-by: Omar Mohamed <[email protected]> * Add `front()` to jsoncons array_type * Remove non-const overloads of front() Signed-off-by: Omar Mohamed <[email protected]> * Fix check for front() in array_type Signed-off-by: Omar Mohamed <[email protected]> * Use std::decay Signed-off-by: Omar Mohamed <[email protected]> * fix example to print array value * expose base class ctors * update as_array traits helper * fixup linter --------- Signed-off-by: Omar Mohamed <[email protected]> Co-authored-by: Chris Mc <[email protected]>
- Loading branch information
1 parent
59cdb43
commit 71c3d36
Showing
4 changed files
with
42 additions
and
32 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
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
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
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