From f59f4a2b61161f8aab0d7b499fbb9b7a94b66188 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Tue, 30 Jun 2020 19:55:40 +0200 Subject: [PATCH] :green_heart: fix build --- test/src/unit-udt_macro.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/src/unit-udt_macro.cpp b/test/src/unit-udt_macro.cpp index a45b2c50..4535ae5b 100644 --- a/test/src/unit-udt_macro.cpp +++ b/test/src/unit-udt_macro.cpp @@ -32,8 +32,6 @@ SOFTWARE. #include using nlohmann::json; -#include - 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;