diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-07-16 15:17:21 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-07-16 15:17:21 -0400 |
commit | 558fcd9bf0852b5c909822c374f7e445b63026e5 (patch) | |
tree | f78d74f389c63f83da1878c9982de9a8e3343df0 /src/version.h | |
parent | 2944687cbbaa53d0815fea9f5f2506500e2e1db3 (diff) | |
parent | a40d5a90a4759ecb03fe4591878c011d3c8c07be (diff) | |
download | lingo-ap-tracker-558fcd9bf0852b5c909822c374f7e445b63026e5.tar.gz lingo-ap-tracker-558fcd9bf0852b5c909822c374f7e445b63026e5.tar.bz2 lingo-ap-tracker-558fcd9bf0852b5c909822c374f7e445b63026e5.zip |
Merge branch 'main' into panels
Diffstat (limited to 'src/version.h')
-rw-r--r-- | src/version.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/version.h b/src/version.h index 7aab91b..8f93e18 100644 --- a/src/version.h +++ b/src/version.h | |||
@@ -1,9 +1,10 @@ | |||
1 | #ifndef VERSION_H_C757E53C | 1 | #ifndef VERSION_H_C757E53C |
2 | #define VERSION_H_C757E53C | 2 | #define VERSION_H_C757E53C |
3 | 3 | ||
4 | #include <sstream> | ||
5 | #include <regex> | 4 | #include <regex> |
6 | 5 | ||
6 | #include <fmt/core.h> | ||
7 | |||
7 | struct Version { | 8 | struct Version { |
8 | int major = 0; | 9 | int major = 0; |
9 | int minor = 0; | 10 | int minor = 0; |
@@ -24,9 +25,7 @@ struct Version { | |||
24 | } | 25 | } |
25 | 26 | ||
26 | std::string ToString() const { | 27 | std::string ToString() const { |
27 | std::ostringstream output; | 28 | return fmt::format("v{}.{}.{}", major, minor, revision); |
28 | output << "v" << major << "." << minor << "." << revision; | ||
29 | return output.str(); | ||
30 | } | 29 | } |
31 | 30 | ||
32 | bool operator<(const Version& rhs) const { | 31 | bool operator<(const Version& rhs) const { |
@@ -37,6 +36,6 @@ struct Version { | |||
37 | } | 36 | } |
38 | }; | 37 | }; |
39 | 38 | ||
40 | constexpr const Version kTrackerVersion = Version(0, 10, 2); | 39 | constexpr const Version kTrackerVersion = Version(0, 10, 6); |
41 | 40 | ||
42 | #endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file | 41 | #endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file |