Loading media/utils/include/mediautils/StaticStringView.h +9 −9 Original line number Diff line number Diff line Loading @@ -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") Loading Loading
media/utils/include/mediautils/StaticStringView.h +9 −9 Original line number Diff line number Diff line Loading @@ -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") Loading