Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3694fdd authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Don't request concrete comparison operators

operator>= has been removed in recent libc++ and replaced by operator<=>
It's still okay to use operator ">=", but not "operator>=" symbol.

Bug: 175635923
Test: m MODULES-IN-frameworks-av-media-utils
Change-Id: I0a1c5a4f3348a5ff2339c65b799accd7e331f49a
parent e9e62c53
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -23,13 +23,13 @@
#undef EXPLICIT_CONVERSION_GENERATE_OPERATOR
#define EXPLICIT_CONVERSION_GENERATE_OPERATOR(T, U, op)    \
    friend constexpr bool operator op(T lhs, T rhs) {      \
        return operator op(static_cast<U>(lhs), static_cast<U>(rhs)); \
        return static_cast<U>(lhs) op static_cast<U>(rhs); \
    }                                                      \
    friend constexpr bool operator op(T lhs, U rhs) {      \
        return operator op(static_cast<U>(lhs), rhs);                 \
        return static_cast<U>(lhs) op rhs;                 \
    }                                                      \
    friend constexpr bool operator op(U lhs, T rhs) {      \
        return operator op(lhs, static_cast<U>(rhs));                 \
        return lhs op static_cast<U>(rhs);                 \
    }

#pragma push_macro("EXPLICIT_CONVERSION_GENERATE_COMPARISON_OPERATORS")