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
8b1a777d
Commit
8b1a777d
authored
Feb 05, 2016
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted change wrt. Erasable concept
parent
2ff2e106
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
json.hpp.re2c
src/json.hpp.re2c
+0
-3
unit.cpp
test/unit.cpp
+0
-18
No files found.
src/json.hpp.re2c
View file @
8b1a777d
...
@@ -143,9 +143,6 @@ default)
...
@@ -143,9 +143,6 @@ default)
- [ReversibleContainer](http://en.cppreference.com/w/cpp/concept/ReversibleContainer);
- [ReversibleContainer](http://en.cppreference.com/w/cpp/concept/ReversibleContainer);
JSON values can be used like STL containers and provide reverse iterator
JSON values can be used like STL containers and provide reverse iterator
access.
access.
- Container Elements
- [Eraseable](http://en.cppreference.com/w/cpp/concept/Erasable):
JSON values can be destroyed by a given allocator.
@internal
@internal
@note ObjectType trick from http://stackoverflow.com/a/9860911
@note ObjectType trick from http://stackoverflow.com/a/9860911
...
...
test/unit.cpp
View file @
8b1a777d
...
@@ -10767,24 +10767,6 @@ TEST_CASE("concepts")
...
@@ -10767,24 +10767,6 @@ TEST_CASE("concepts")
// the expression "X()" has the post-condition "X().empty()"
// the expression "X()" has the post-condition "X().empty()"
CHECK
(
json
().
empty
());
CHECK
(
json
().
empty
());
// from http://en.cppreference.com/w/cpp/concept/Container:
// T must be Eraseable
{
// prepare
auto
m
=
json
::
get_allocator
();
json
*
p
=
m
.
allocate
(
1
);
m
.
construct
(
p
,
"foo"
);
// required
std
::
allocator_traits
<
json
::
allocator_type
>::
destroy
(
m
,
p
);
CHECK
(
*
p
==
"foo"
);
// cleanup
m
.
deallocate
(
p
,
1
);
}
}
}
SECTION
(
"class json"
)
SECTION
(
"class json"
)
...
...
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