Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
746c1a71
Commit
746c1a71
authored
Oct 17, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
73632377
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
README.md
README.md
+1
-0
json.hpp
src/json.hpp
+1
-1
json.hpp.re2c
src/json.hpp.re2c
+1
-1
unit.cpp
test/unit.cpp
+1
-1
No files found.
README.md
View file @
746c1a71
...
...
@@ -379,6 +379,7 @@ I deeply appreciate the help of the following people.
-
[
Colin Hirsch
](
https://github.com/ColinH
)
took care of a small namespace issue.
-
[
Huu Nguyen
](
https://github.com/whoshuu
)
correct a variable name in the documentation.
-
[
Silverweed
](
https://github.com/silverweed
)
overloaded
`parse()`
to accept an rvalue reference.
-
[
dariomt
](
https://github.com/dariomt
)
fixed a subtlety in MSVC type support.
Thanks a lot for helping out!
...
...
src/json.hpp
View file @
746c1a71
...
...
@@ -586,7 +586,7 @@ class basic_json
private
:
/// helper for exception-safe object creation
template
<
typename
T
,
typename
...
Args
>
static
T
*
create
(
Args
&&
...
args
)
static
T
*
create
(
Args
&&
...
args
)
{
AllocatorType
<
T
>
alloc
;
auto
deleter
=
[
&
](
T
*
object
)
...
...
src/json.hpp.re2c
View file @
746c1a71
...
...
@@ -589,7 +589,7 @@ class basic_json
static T* create(Args&& ... args)
{
AllocatorType<T> alloc;
auto deleter = [&](T* object)
auto deleter = [&](T
* object)
{
alloc.deallocate(object, 1);
};
...
...
test/unit.cpp
View file @
746c1a71
...
...
@@ -9228,7 +9228,7 @@ TEST_CASE("concepts")
SECTION
(
"CopyAssignable"
)
{
// STL iterators used by json::iterator don't pass this test in Debug mode
// STL iterators used by json::iterator don't pass this test in Debug mode
#if !defined(_MSC_VER) || (_ITERATOR_DEBUG_LEVEL == 0)
CHECK
(
std
::
is_nothrow_copy_assignable
<
json
::
iterator
>::
value
);
CHECK
(
std
::
is_nothrow_copy_assignable
<
json
::
const_iterator
>::
value
);
...
...
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