llvm-project
433a63e1 - Fix ambiguous reversed operator error in sanitizer_mac.h (#135068)

Commit
210 days ago
Fix ambiguous reversed operator error in sanitizer_mac.h (#135068) Fixes error: ISO C++20 considers use of overloaded operator '==' (with operand types 'MacosVersion' and 'MacosVersion') to be ambiguous despite there being a unique best viable function [-Werror,-Wambiguous-reversed-operator]. This converts the comparison operator from a non-symmetric operator (const VersionBase<VersionType>& (as "this") and const VersionType &). into a symmetric operator
Author
itf itf
Parents
Loading