Bool Version::operator>(const Version& other) const { const auto shortes = __min(m_parts.size(), other.GetPartsCount()); for (SizeT i = 0; i < shortes; i++) { if (m_parts[i] > other[i]) { return True; } if (m_parts[i] < other[i]) { return False; } } if (other.GetPartsCount() > m_parts.size()) { return False; } for (SizeT i = shortes; i < m_parts.size(); i++) { if (m_parts[i] != 0) { return True; } } return False; }