Fix missing partial specialisation equal operators (#927)

This commit is contained in:
Chiraffollo 2024-07-20 10:33:04 +02:00 committed by John Wellbelove
parent 324f5ebea9
commit 083bafa3ce

View File

@ -1166,6 +1166,22 @@ bool operator !=(const etl::expected<TValue, TError>& lhs, const etl::unexpected
return !(lhs == rhs);
}
//*******************************************
template <typename TError, typename TError2>
ETL_CONSTEXPR14
bool operator !=(const etl::expected<void, TError>& lhs, const etl::expected<void, TError2>& rhs)
{
return !(lhs == rhs);
}
//*******************************************
template <typename TError, typename TError2>
ETL_CONSTEXPR14
bool operator !=(const etl::expected<void, TError>& lhs, const etl::unexpected<TError2>& rhs)
{
return !(lhs == rhs);
}
//*******************************************
template <typename TError, typename TError2>
ETL_CONSTEXPR14