Skip to content

Commit

Permalink
💚 fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jun 30, 2020
1 parent c7e079c commit f59f4a2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/src/unit-udt_macro.cpp
Expand Up @@ -32,8 +32,6 @@ SOFTWARE.
#include <nlohmann/json.hpp>
using nlohmann::json;

#include <utility>

namespace persons
{
class person_with_private_data
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit f59f4a2

Please sign in to comment.