Neargye / semver

Semantic Versioning for modern C++
MIT License
296 stars 32 forks source link

[Feature] Semver Ranges #9

Closed Naratzul closed 3 years ago

Naratzul commented 4 years ago

[Work in progress]

It's a draft implementation of semver ranges. It's already supports basic range comparators like

Example

const semver::range range(">= 1.2.4 < 2.0.0");
constexpr semver::version version = "1.5.2"_version;
if (range.contains(version)) {
  // do something
}

What I'm going to do next:

Any suggestions and improvements are welcome.