Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
3a3e0642
Commit
3a3e0642
authored
Apr 16, 2016
by
Niels
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature/json-pointer
parents
94af8abd
76a5a776
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
366 additions
and
385 deletions
+366
-385
Makefile
Makefile
+2
-2
README.md
README.md
+2
-1
src/json.hpp
src/json.hpp
+349
-380
src/json.hpp.re2c
src/json.hpp.re2c
+2
-2
test/unit.cpp
test/unit.cpp
+11
-0
No files found.
Makefile
View file @
3a3e0642
...
...
@@ -66,7 +66,7 @@ cppcheck:
# create scanner with re2c
re2c
:
src/json.hpp.re2c
$(RE2C)
-
b
-s
-i
--no-generation-date
$<
|
$(SED)
'1d'
>
src/json.hpp
$(RE2C)
-
-bit-vectors
--nested-ifs
--no-debug-info
$<
|
$(SED)
'1d'
>
src/json.hpp
# pretty printer
pretty
:
...
...
@@ -74,7 +74,7 @@ pretty:
--indent-switches
--indent-preproc-block
--indent-preproc-define
\
--indent-col1-comments
--pad-oper
--pad-header
--align-pointer
=
type
\
--align-reference
=
type
--add-brackets
--convert-tabs
--close-templates
\
--lineend
=
linux
--preserve-date
--suffix
=
none
\
--lineend
=
linux
--preserve-date
--suffix
=
none
--formatted
\
src/json.hpp src/json.hpp.re2c
test
/unit.cpp
test
/fuzz.cpp benchmarks/benchmarks.cpp doc/examples/
*
.cpp
...
...
README.md
View file @
3a3e0642
...
...
@@ -410,6 +410,7 @@ I deeply appreciate the help of the following people.
-
[
Lv Zheng
](
https://github.com/lv-zheng
)
fixed a namespace issue with
`int64_t`
and
`uint64_t`
.
-
[
abc100m
](
https://github.com/abc100m
)
analyzed the issues with GCC 4.8 and proposed a
[
partial solution
](
https://github.com/nlohmann/json/pull/212
)
.
-
[
zewt
](
https://github.com/zewt
)
added useful notes to the README file about Android.
-
[
Róbert Márki
](
https://github.com/robertmrk
)
added a fix to use move iterators.
Thanks a lot for helping out!
...
...
@@ -427,7 +428,7 @@ $ make
$
./json_unit
"*"
===============================================================================
All tests passed
(
33442
78
assertions
in
29
test
cases
)
All tests passed
(
33442
99
assertions
in
29
test
cases
)
```
For more information, have a look at the file
[
.travis.yml
](
https://github.com/nlohmann/json/blob/master/.travis.yml
)
.
src/json.hpp
View file @
3a3e0642
This diff is collapsed.
Click to expand it.
src/json.hpp.re2c
View file @
3a3e0642
...
...
@@ -7000,13 +7000,13 @@ class basic_json
}
/// return a reference to the value pointed to by the iterator
reference operator*()
reference operator*()
const
{
return const_cast<reference>(base_iterator::operator*());
}
/// dereference the iterator
pointer operator->()
pointer operator->()
const
{
return const_cast<pointer>(base_iterator::operator->());
}
...
...
test/unit.cpp
View file @
3a3e0642
...
...
@@ -12499,4 +12499,15 @@ TEST_CASE("regression tests")
CHECK
(
j3b
.
dump
()
==
"1E04"
);
CHECK
(
j3c
.
dump
()
==
"1e04"
);
}
SECTION
(
"issue #233 - Can't use basic_json::iterator as a base iterator for std::move_iterator"
)
{
json
source
=
{
"a"
,
"b"
,
"c"
};
json
expected
=
{
"a"
,
"b"
};
json
dest
;
std
::
copy_n
(
std
::
make_move_iterator
(
source
.
begin
()),
2
,
std
::
back_inserter
(
dest
));
CHECK
(
dest
==
expected
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment