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

Commit 8b803482 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Automerger Merge Worker
Browse files

Merge "Don't request concrete comparison operators" into main am: 5fdac6d1

parents 83a695dd 5fdac6d1
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")