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

Commit 5fdac6d1 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Gerrit Code Review
Browse files

Merge "Don't request concrete comparison operators" into main

parents 72f81734 d3694fdd
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")