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