11#ifndef LODESTONE_SEMVER_H
12#define LODESTONE_SEMVER_H
22 static constexpr int NONE = -1;
29 std::string ver = std::to_string(
major) +
30 "." + std::to_string(
minor) +
31 "." + std::to_string(
patch);
34 ver +=
"-dev." + std::to_string(
devVer);
40 explicit constexpr operator std::string()
const {
Rough impl of a Semver class, if you can even call it that... hardly follows the specification lmao.
Definition Semver.h:21
constexpr std::string toVersionString() const
Definition Semver.h:28
static constexpr int NONE
Definition Semver.h:22
const int devVer
Definition Semver.h:47
constexpr std::string toString() const
Definition Semver.h:24
const int minor
Definition Semver.h:45
const int major
Definition Semver.h:44
const int patch
Definition Semver.h:46