From 09637d4db4f4a358df582496c6a05c854de0d8bf Mon Sep 17 00:00:00 2001 From: tovjemam Date: Thu, 8 Jan 2026 18:34:07 +0100 Subject: [PATCH] REmove usage of std::format --- .gitignore | 2 +- src/utils/files_server.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c8a1619..fbeae05 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ out/ .vs/ .vscode/ /assets/ - +.cache/ .idea/ *.log .cxx/ diff --git a/src/utils/files_server.cpp b/src/utils/files_server.cpp index 3b6ebaf..1df6480 100644 --- a/src/utils/files_server.cpp +++ b/src/utils/files_server.cpp @@ -1,14 +1,13 @@ #include "files.hpp" #include -#include std::string fs::ReadFileAsString(const std::string& path) { std::ifstream t(path, std::ios::binary); if (!t) - throw std::runtime_error(std::format("File not found: {}", path)); + throw std::runtime_error("File not found: " + path); t.seekg(0, std::ios::end); size_t size = t.tellg();