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
f59f4a2b
Unverified
Commit
f59f4a2b
authored
Jun 30, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
💚
fix build
parent
c7e079cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
unit-udt_macro.cpp
test/src/unit-udt_macro.cpp
+3
-5
No files found.
test/src/unit-udt_macro.cpp
View file @
f59f4a2b
...
@@ -32,8 +32,6 @@ SOFTWARE.
...
@@ -32,8 +32,6 @@ SOFTWARE.
#include <nlohmann/json.hpp>
#include <nlohmann/json.hpp>
using
nlohmann
::
json
;
using
nlohmann
::
json
;
#include <utility>
namespace
persons
namespace
persons
{
{
class
person_with_private_data
class
person_with_private_data
...
@@ -46,7 +44,7 @@ class person_with_private_data
...
@@ -46,7 +44,7 @@ class person_with_private_data
public
:
public
:
bool
operator
==
(
const
person_with_private_data
&
rhs
)
const
bool
operator
==
(
const
person_with_private_data
&
rhs
)
const
{
{
return
std
::
tie
(
name
,
age
,
metadata
)
==
std
::
tie
(
rhs
.
name
,
rhs
.
age
,
rhs
.
metadata
)
;
return
name
==
rhs
.
name
&&
age
==
rhs
.
age
&&
metadata
==
rhs
.
metadata
;
}
}
person_with_private_data
()
=
default
;
person_with_private_data
()
=
default
;
...
@@ -68,7 +66,7 @@ class person_without_private_data_1
...
@@ -68,7 +66,7 @@ class person_without_private_data_1
bool
operator
==
(
const
person_without_private_data_1
&
rhs
)
const
bool
operator
==
(
const
person_without_private_data_1
&
rhs
)
const
{
{
return
std
::
tie
(
name
,
age
,
metadata
)
==
std
::
tie
(
rhs
.
name
,
rhs
.
age
,
rhs
.
metadata
)
;
return
name
==
rhs
.
name
&&
age
==
rhs
.
age
&&
metadata
==
rhs
.
metadata
;
}
}
person_without_private_data_1
()
=
default
;
person_without_private_data_1
()
=
default
;
...
@@ -90,7 +88,7 @@ class person_without_private_data_2
...
@@ -90,7 +88,7 @@ class person_without_private_data_2
bool
operator
==
(
const
person_without_private_data_2
&
rhs
)
const
bool
operator
==
(
const
person_without_private_data_2
&
rhs
)
const
{
{
return
std
::
tie
(
name
,
age
,
metadata
)
==
std
::
tie
(
rhs
.
name
,
rhs
.
age
,
rhs
.
metadata
)
;
return
name
==
rhs
.
name
&&
age
==
rhs
.
age
&&
metadata
==
rhs
.
metadata
;
}
}
person_without_private_data_2
()
=
default
;
person_without_private_data_2
()
=
default
;
...
...
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