From 5f7069d480022b115bee585724d41ff827f80f2f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 20 Apr 2024 12:36:22 -0400 Subject: Replaced about box --- src/version.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/version.h') diff --git a/src/version.h b/src/version.h index 8c567e9..7b9aebc 100644 --- a/src/version.h +++ b/src/version.h @@ -1,7 +1,7 @@ #ifndef VERSION_H_C757E53C #define VERSION_H_C757E53C -#include +#include #include struct Version { @@ -23,6 +23,12 @@ struct Version { } } + std::string ToString() const { + std::ostringstream output; + output << "v" << major << "." << minor << "." << revision; + return output.str(); + } + bool operator<(const Version& rhs) const { return (major < rhs.major) || (major == rhs.major && @@ -31,10 +37,6 @@ struct Version { } }; -std::ostream& operator<<(std::ostream& out, const Version& ver) { - return out << "v" << ver.major << "." << ver.minor << "." << ver.revision; -} - constexpr const Version kTrackerVersion = Version(0, 8, 0); #endif /* end of include guard: VERSION_H_C757E53C */ \ No newline at end of file -- cgit 1.4.1