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
7660ea12
Commit
7660ea12
authored
Jul 20, 2020
by
pf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[JSON] drop use of std::tie and std::tupe for operator== overload. valgrind and clang < 4 complain
parent
678d310b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
5 deletions
+52
-5
test/src/unit-udt_macro.cpp
test/src/unit-udt_macro.cpp
+52
-5
No files found.
test/src/unit-udt_macro.cpp
View file @
7660ea12
...
@@ -29,7 +29,6 @@ SOFTWARE.
...
@@ -29,7 +29,6 @@ SOFTWARE.
#include <string>
#include <string>
#include <vector>
#include <vector>
#include <cassert>
#include "doctest_compatibility.h"
#include "doctest_compatibility.h"
#include <nlohmann/json.hpp>
#include <nlohmann/json.hpp>
...
@@ -109,8 +108,32 @@ class person_with_private_alphabet
...
@@ -109,8 +108,32 @@ class person_with_private_alphabet
public:
public:
bool
operator
==
(
const
person_with_private_alphabet
&
other
)
bool
operator
==
(
const
person_with_private_alphabet
&
other
)
{
{
return
std
::
tie
(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
,
o
,
p
,
q
,
r
,
s
,
t
,
u
,
v
,
w
,
x
,
y
,
z
)
==
return
a
==
other
.
a
&&
std
::
tie
(
other
.
a
,
other
.
b
,
other
.
c
,
other
.
d
,
other
.
e
,
other
.
f
,
other
.
g
,
other
.
h
,
other
.
i
,
other
.
j
,
other
.
k
,
other
.
l
,
other
.
m
,
other
.
n
,
other
.
o
,
other
.
p
,
other
.
q
,
other
.
r
,
other
.
s
,
other
.
t
,
other
.
u
,
other
.
v
,
other
.
w
,
other
.
x
,
other
.
y
,
other
.
z
);
b
==
other
.
b
&&
c
==
other
.
c
&&
d
==
other
.
d
&&
e
==
other
.
e
&&
f
==
other
.
f
&&
g
==
other
.
g
&&
h
==
other
.
h
&&
i
==
other
.
i
&&
j
==
other
.
j
&&
k
==
other
.
k
&&
l
==
other
.
l
&&
m
==
other
.
m
&&
n
==
other
.
n
&&
o
==
other
.
o
&&
p
==
other
.
p
&&
q
==
other
.
q
&&
r
==
other
.
r
&&
s
==
other
.
s
&&
t
==
other
.
t
&&
u
==
other
.
u
&&
v
==
other
.
v
&&
w
==
other
.
w
&&
x
==
other
.
x
&&
y
==
other
.
y
&&
z
==
other
.
z
;
}
}
private:
private:
...
@@ -148,8 +171,32 @@ class person_with_public_alphabet
...
@@ -148,8 +171,32 @@ class person_with_public_alphabet
public:
public:
bool
operator
==
(
const
person_with_public_alphabet
&
other
)
bool
operator
==
(
const
person_with_public_alphabet
&
other
)
{
{
return
std
::
tie
(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
,
j
,
k
,
l
,
m
,
n
,
o
,
p
,
q
,
r
,
s
,
t
,
u
,
v
,
w
,
x
,
y
,
z
)
==
return
a
==
other
.
a
&&
std
::
tie
(
other
.
a
,
other
.
b
,
other
.
c
,
other
.
d
,
other
.
e
,
other
.
f
,
other
.
g
,
other
.
h
,
other
.
i
,
other
.
j
,
other
.
k
,
other
.
l
,
other
.
m
,
other
.
n
,
other
.
o
,
other
.
p
,
other
.
q
,
other
.
r
,
other
.
s
,
other
.
t
,
other
.
u
,
other
.
v
,
other
.
w
,
other
.
x
,
other
.
y
,
other
.
z
);
b
==
other
.
b
&&
c
==
other
.
c
&&
d
==
other
.
d
&&
e
==
other
.
e
&&
f
==
other
.
f
&&
g
==
other
.
g
&&
h
==
other
.
h
&&
i
==
other
.
i
&&
j
==
other
.
j
&&
k
==
other
.
k
&&
l
==
other
.
l
&&
m
==
other
.
m
&&
n
==
other
.
n
&&
o
==
other
.
o
&&
p
==
other
.
p
&&
q
==
other
.
q
&&
r
==
other
.
r
&&
s
==
other
.
s
&&
t
==
other
.
t
&&
u
==
other
.
u
&&
v
==
other
.
v
&&
w
==
other
.
w
&&
x
==
other
.
x
&&
y
==
other
.
y
&&
z
==
other
.
z
;
}
}
int
a
;
int
a
;
...
...
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