From 5952f024955fdb53892e7d18f2237a009e4c6843 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 20 Jul 2024 10:01:37 +0100 Subject: [PATCH] Add missing swap implementations for expected (#928) * Fix missing partial specialisation equal operators * Add missing swap implementations for expected --- include/etl/expected.h | 4 ++-- test/test_type_traits.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/etl/expected.h b/include/etl/expected.h index 168155af9..5f172ebe6 100644 --- a/include/etl/expected.h +++ b/include/etl/expected.h @@ -387,7 +387,7 @@ namespace etl #endif //******************************************* - /// + /// Copy assign from etl::expected. //******************************************* this_type& operator =(const this_type& other) { @@ -400,7 +400,7 @@ namespace etl #if ETL_USING_CPP11 //******************************************* - /// + /// Move assign from etl::expected. //******************************************* this_type& operator =(this_type&& other) { diff --git a/test/test_type_traits.cpp b/test/test_type_traits.cpp index 129a5fa8d..f5fd7e19c 100644 --- a/test/test_type_traits.cpp +++ b/test/test_type_traits.cpp @@ -594,7 +594,7 @@ namespace Two }; - CHECK((etl::is_same::type, std::make_signed::type>::value)); + CHECK((etl::is_same::type>::type, std::make_signed::type>::value)); enum class se : int8_t { @@ -602,7 +602,7 @@ namespace Two }; - CHECK((etl::is_same::type, std::make_signed::type>::value)); + CHECK((etl::is_same::type>::type, std::make_signed::type>::value)); } //************************************************************************* @@ -636,7 +636,7 @@ namespace Two }; - CHECK((etl::is_same::type, std::make_unsigned::type>::value)); + CHECK((etl::is_same::type>::type, std::make_unsigned::type>::value)); enum class se : int8_t { @@ -644,7 +644,7 @@ namespace Two }; - CHECK((etl::is_same::type, std::make_unsigned::type>::value)); + CHECK((etl::is_same::type>::type, std::make_unsigned::type>::value)); } //*************************************************************************