From 86f3288312d9e5f24699ce4e15afec041ea3caf4 Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Thu, 17 Oct 2024 00:21:26 +0200 Subject: [PATCH] fix swap tests --- test/optional_test_inplace_fail.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/optional_test_inplace_fail.cpp b/test/optional_test_inplace_fail.cpp index 38722ba..c66effd 100644 --- a/test/optional_test_inplace_fail.cpp +++ b/test/optional_test_inplace_fail.cpp @@ -31,10 +31,10 @@ struct Guard std::string str; Guard() : num() {} Guard(double num_, std::string str_) : num(num_), str(str_) {} - + friend bool operator==(const Guard& lhs, const Guard& rhs) { return lhs.num == rhs.num && lhs.str == rhs.str; } friend bool operator!=(const Guard& lhs, const Guard& rhs) { return !(lhs == rhs); } - + private: Guard(const Guard&); Guard& operator=(const Guard&); @@ -50,4 +50,4 @@ int main() NOTHING_TO_TEST_SO_JUST_FAIL #endif return 0; -} \ No newline at end of file +}