Export major/minor/patch helpers on SemVerVersion

This commit is contained in:
Alex Beregszaszi 2016-10-25 02:30:25 +01:00
parent 067109e1ae
commit 7a988555c3

View File

@ -40,6 +40,12 @@ struct SemVerVersion
std::string prerelease;
std::string build;
unsigned major() const { return numbers[0]; }
unsigned minor() const { return numbers[1]; }
unsigned patch() const { return numbers[2]; }
bool isPrerelease() const { return !prerelease.empty(); }
explicit SemVerVersion(std::string const& _versionString = "0.0.0");
};