Neargye / semver

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

Check for beta-updates #26

Closed Clamb94 closed 3 years ago

Clamb94 commented 3 years ago

Hi, is there an option to check for new beta versions as well? When comparing 0.10.0-beta.2 > 0.10.0-beta.1, the result will be FALSE. I'd also like to check if the beta version increased.

Best regards Axel

Naratzul commented 3 years ago

Hi, Axel.

Could you give us a code snippet of your problem? I've just tested the following example.

constexpr version v1 = {0, 10, 0, prerelease::beta, 1};
constexpr version v2 = {0, 10, 0, prerelease::beta, 2};
std::cout << (v2 > v1) << std::endl;

The result. 1

Clamb94 commented 3 years ago

I'm very sorry, my mistake. Mixed something up. Works just as expected. Nice tool :)