File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed 
compiler-rt/lib/sanitizer_common Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,19 @@ struct VersionBase {
3737
3838  VersionBase (u16  major, u16  minor) : major(major), minor(minor) {}
3939
40-   bool  operator ==(const  VersionType &other) const  {
41-     return  major == other.major  && minor == other.minor ;
42-   }
4340  bool  operator >=(const  VersionType &other) const  {
4441    return  major > other.major  ||
4542           (major == other.major  && minor >= other.minor );
4643  }
4744  bool  operator <(const  VersionType &other) const  { return  !(*this  >= other); }
4845};
4946
47+ template  <typename  VersionType>
48+ bool  operator ==(const  VersionBase<VersionType> &self,
49+                 const  VersionBase<VersionType> &other) {
50+   return  self.major  == other.major  && self.minor  == other.minor ;
51+ }
52+ 
5053struct  MacosVersion  : VersionBase<MacosVersion> {
5154  MacosVersion (u16  major, u16  minor) : VersionBase(major, minor) {}
5255};
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments