From 083bafa3ced0fa9acaa194de4d6e355b2b1c975a Mon Sep 17 00:00:00 2001 From: Chiraffollo <5937599+Chiraffollo@users.noreply.github.com> Date: Sat, 20 Jul 2024 10:33:04 +0200 Subject: [PATCH] Fix missing partial specialisation equal operators (#927) --- include/etl/expected.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/etl/expected.h b/include/etl/expected.h index 0dc5c059..9fb43f2c 100644 --- a/include/etl/expected.h +++ b/include/etl/expected.h @@ -1166,6 +1166,22 @@ bool operator !=(const etl::expected& lhs, const etl::unexpected return !(lhs == rhs); } +//******************************************* +template +ETL_CONSTEXPR14 +bool operator !=(const etl::expected& lhs, const etl::expected& rhs) +{ + return !(lhs == rhs); +} + +//******************************************* +template +ETL_CONSTEXPR14 +bool operator !=(const etl::expected& lhs, const etl::unexpected& rhs) +{ + return !(lhs == rhs); +} + //******************************************* template ETL_CONSTEXPR14