diff --git a/src/t8_types/t8_operators.hxx b/src/t8_types/t8_operators.hxx index f3590f870b..632da9d037 100644 --- a/src/t8_types/t8_operators.hxx +++ b/src/t8_types/t8_operators.hxx @@ -206,10 +206,10 @@ struct Swapable: t8_crtp_operator template struct EqualityComparable: t8_crtp_operator { - constexpr bool - operator== (TUnderlying const& other) const noexcept + friend constexpr bool + operator== (const TUnderlying& lhs, const TUnderlying& rhs) noexcept { - return this->underlying ().get () == other.get (); + return lhs.get () == rhs.get (); } };