diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 15:54:41 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 15:54:41 -0400 |
commit | 8ddab49cc13d809ca75dcd7f645661a3d3cb05c4 (patch) | |
tree | ba1e5f3237dbb7cdc939c35e193f5e6e46845a77 /src/version.h | |
parent | ac38dd0a5c394eefc39b7a8cf7b96762f18c8b31 (diff) | |
parent | 6f5287b3921c843a6b322ccbdfcbef00a8f16980 (diff) | |
download | lingo-ap-tracker-8ddab49cc13d809ca75dcd7f645661a3d3cb05c4.tar.gz lingo-ap-tracker-8ddab49cc13d809ca75dcd7f645661a3d3cb05c4.tar.bz2 lingo-ap-tracker-8ddab49cc13d809ca75dcd7f645661a3d3cb05c4.zip |
Merge branch 'subway'
Diffstat (limited to 'src/version.h')
-rw-r--r-- | src/version.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/version.h b/src/version.h index 0ccd2c7..4b13d42 100644 --- a/src/version.h +++ b/src/version.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef VERSION_H_C757E53C | 1 | #ifndef VERSION_H_C757E53C |
2 | #define VERSION_H_C757E53C | 2 | #define VERSION_H_C757E53C |
3 | 3 | ||
4 | #include <iostream> | 4 | #include <sstream> |
5 | #include <regex> | 5 | #include <regex> |
6 | 6 | ||
7 | struct Version { | 7 | struct Version { |
@@ -23,6 +23,12 @@ struct Version { | |||
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | std::string ToString() const { | ||
27 | std::ostringstream output; | ||
28 | output << "v" << major << "." << minor << "." << revision; | ||
29 | return output.str(); | ||
30 | } | ||
31 | |||
26 | bool operator<(const Version& rhs) const { | 32 | bool operator<(const Version& rhs) const { |
27 | return (major < rhs.major) || | 33 | return (major < rhs.major) || |
28 | (major == rhs.major && | 34 | (major == rhs.major && |
@@ -31,10 +37,6 @@ struct Version { | |||
31 | } | 37 | } |
32 | }; | 38 | }; |
33 | 39 | ||
34 | std::ostream& operator<<(std::ostream& out, const Version& ver) { | ||
35 | return out << "v" << ver.major << "." << ver.minor << "." << ver.revision; | ||
36 | } | ||
37 | |||
38 | constexpr const Version kTrackerVersion = Version(0, 9, 2); | 40 | constexpr const Version kTrackerVersion = Version(0, 9, 2); |
39 | 41 | ||
40 | #endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file | 42 | #endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file |