From 33bf1f9653ed608de5554940dc8a0c3f5dc7e4ea Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 10 Jun 2024 19:13:22 -0400 Subject: Go back to old logging system Brought in libfmt to handle string formatting and replace a bunch of ostringstream uses. --- src/version.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/version.h') diff --git a/src/version.h b/src/version.h index 7aab91b..060d557 100644 --- a/src/version.h +++ b/src/version.h @@ -1,9 +1,10 @@ #ifndef VERSION_H_C757E53C #define VERSION_H_C757E53C -#include #include +#include + struct Version { int major = 0; int minor = 0; @@ -24,9 +25,7 @@ struct Version { } std::string ToString() const { - std::ostringstream output; - output << "v" << major << "." << minor << "." << revision; - return output.str(); + return fmt::format("v{}.{}.{}", major, minor, revision); } bool operator<(const Version& rhs) const { -- cgit 1.4.1