| 280 | static Version FromString(const std::string &ver_str); |
| 281 | |
| 282 | inline constexpr bool IsLower(const Version &other) const { |
| 283 | if(this->major > other.major) { |
| 284 | return true; |
| 285 | } |
| 286 | else if(this->major == other.major) { |
| 287 | if(this->minor > other.minor) { |
| 288 | return true; |
| 289 | } |
| 290 | else if(this->minor == other.minor) { |
| 291 | if(this->micro > other.micro) { |
| 292 | return true; |
| 293 | } |
| 294 | } |
| 295 | } |
| 296 | return false; |
| 297 | } |
| 298 | |
| 299 | inline constexpr bool IsHigher(const Version &other) const { |
| 300 | return !this->IsLower(other) && !this->IsEqual(other); |
no outgoing calls
no test coverage detected