File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler-rt/lib/sanitizer_common Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,16 @@ struct VersionBase {
37
37
38
38
VersionBase (u16 major, u16 minor) : major(major), minor(minor) {}
39
39
40
+ bool operator ==(const VersionType &other) const {
41
+ return major == other.major && minor == other.minor ;
42
+ }
40
43
bool operator >=(const VersionType &other) const {
41
44
return major > other.major ||
42
45
(major == other.major && minor >= other.minor );
43
46
}
44
47
bool operator <(const VersionType &other) const { return !(*this >= other); }
45
48
};
46
49
47
- template <typename VersionType>
48
- bool operator ==(const VersionType &self, const VersionType &other) {
49
- return self.major == other.major && self.minor == other.minor ;
50
- }
51
-
52
50
struct MacosVersion : VersionBase<MacosVersion> {
53
51
MacosVersion (u16 major, u16 minor) : VersionBase(major, minor) {}
54
52
};
You can’t perform that action at this time.
0 commit comments