mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 06:29:03 +08:00
💚 fix build
This commit is contained in:
parent
c7e079cc98
commit
f59f4a2b61
@ -32,8 +32,6 @@ SOFTWARE.
|
||||
#include <nlohmann/json.hpp>
|
||||
using nlohmann::json;
|
||||
|
||||
#include <utility>
|
||||
|
||||
namespace persons
|
||||
{
|
||||
class person_with_private_data
|
||||
@ -46,7 +44,7 @@ class person_with_private_data
|
||||
public:
|
||||
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;
|
||||
@ -68,7 +66,7 @@ class person_without_private_data_1
|
||||
|
||||
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;
|
||||
@ -90,7 +88,7 @@ class person_without_private_data_2
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user