Example #1
0
 bool Version::operator<=(Version other)
 {
   if (Major()<other.Major()) {
      return true;
   } else if (Major()==other.Major() && Minor()<other.Minor()) {
      return true;
   } else if (Major()==other.Major() && Minor()==other.Minor() && Micro()<=other.Micro()) {
      return true;
   }
   return false;
 }