Fixed update logic to support newer index downloaded from the internet

than the index stored in the resources.
This commit is contained in:
bubnikv 2019-12-10 15:01:24 +01:00
parent ece8e06914
commit d0aad74c27
3 changed files with 98 additions and 42 deletions

View file

@ -114,6 +114,7 @@ public:
bool operator&(const Semver &b) const { return ::semver_satisfies_patch(ver, b.ver) != 0; }
bool operator^(const Semver &b) const { return ::semver_satisfies_caret(ver, b.ver) != 0; }
bool in_range(const Semver &low, const Semver &high) const { return low <= *this && *this <= high; }
bool valid() const { return *this != zero() && *this != inf() && *this != invalid(); }
// Conversion
std::string to_string() const {