diff --git a/media/utils/include/mediautils/StaticStringView.h b/media/utils/include/mediautils/StaticStringView.h index 14be240d26426c4f9b6205c6174020c11cee97ec..e9a5debfc1a56396cb70efc2e976609fa9931df1 100644 --- a/media/utils/include/mediautils/StaticStringView.h +++ b/media/utils/include/mediautils/StaticStringView.h @@ -21,15 +21,15 @@ #pragma push_macro("EXPLICIT_CONVERSION_GENERATE_OPERATOR") #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(lhs), static_cast(rhs)); \ - } \ - friend constexpr bool operator op(T lhs, U rhs) { \ - return operator op(static_cast(lhs), rhs); \ - } \ - friend constexpr bool operator op(U lhs, T rhs) { \ - return operator op(lhs, static_cast(rhs)); \ +#define EXPLICIT_CONVERSION_GENERATE_OPERATOR(T, U, op) \ + friend constexpr bool operator op(T lhs, T rhs) { \ + return static_cast(lhs) op static_cast(rhs); \ + } \ + friend constexpr bool operator op(T lhs, U rhs) { \ + return static_cast(lhs) op rhs; \ + } \ + friend constexpr bool operator op(U lhs, T rhs) { \ + return lhs op static_cast(rhs); \ } #pragma push_macro("EXPLICIT_CONVERSION_GENERATE_COMPARISON_OPERATORS")