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
47d154dd
Unverified
Commit
47d154dd
authored
Jul 11, 2020
by
gatopeich
Committed by
GitHub
Jul 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant comment
parent
f9a1fec2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
json.hpp
single_include/nlohmann/json.hpp
+0
-1
No files found.
single_include/nlohmann/json.hpp
View file @
47d154dd
...
@@ -15926,7 +15926,6 @@ struct ordered_map : std::vector<std::pair<const Key, T>, Allocator>
...
@@ -15926,7 +15926,6 @@ struct ordered_map : std::vector<std::pair<const Key, T>, Allocator>
// Since we cannot move const Keys, re-construct them in place
// Since we cannot move const Keys, re-construct them in place
for
(
auto
next
=
it
;
++
next
!=
this
->
end
();
++
it
)
for
(
auto
next
=
it
;
++
next
!=
this
->
end
();
++
it
)
{
{
// *it = std::move(*next); // deleted
it
->~
value_type
();
// Destroy but keep allocation
it
->~
value_type
();
// Destroy but keep allocation
new
(
&*
it
)
value_type
{
std
::
move
(
*
next
)};
new
(
&*
it
)
value_type
{
std
::
move
(
*
next
)};
}
}
...
...
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