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
8159091d
Unverified
Commit
8159091d
authored
Jul 23, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔀
rename variable to avoid shadowing
parent
230dcfb7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/src/unit-conversions.cpp
test/src/unit-conversions.cpp
+2
-2
No files found.
test/src/unit-conversions.cpp
View file @
8159091d
...
@@ -278,8 +278,8 @@ TEST_CASE("value conversion")
...
@@ -278,8 +278,8 @@ TEST_CASE("value conversion")
SECTION
(
"reserve is called on containers that supports it"
)
SECTION
(
"reserve is called on containers that supports it"
)
{
{
// make sure all values are properly copied
// make sure all values are properly copied
json
j
({
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
});
json
j
2
({
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
});
auto
v2
=
j
.
get
<
std
::
vector
<
int
>>
();
auto
v2
=
j
2
.
get
<
std
::
vector
<
int
>>
();
CHECK
(
v2
.
size
()
==
10
);
CHECK
(
v2
.
size
()
==
10
);
}
}
#endif
#endif
...
...
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