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
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
5 deletions
+52
-5
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.
#include <string>
#include <vector>
#include <cassert>
#include "doctest_compatibility.h"
#include <nlohmann/json.hpp>
...
...
@@ -109,8 +108,32 @@ class person_with_private_alphabet
public
:
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
)
==
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
);
return
a
==
other
.
a
&&
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
:
...
...
@@ -148,8 +171,32 @@ class person_with_public_alphabet
public
:
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
)
==
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
);
return
a
==
other
.
a
&&
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
;
...
...
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