From bca5ac479de5721e354b70d627fb9654bd94bdee Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 20 May 2026 17:03:23 +0100 Subject: Switch to std::fstream and std::print for parkLogLines --- src/util.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/util.cpp (limited to 'src/util.cpp') diff --git a/src/util.cpp b/src/util.cpp new file mode 100644 index 0000000..cdce30e --- /dev/null +++ b/src/util.cpp @@ -0,0 +1,11 @@ +#include "util.hpp" + +namespace WebStat { + std::error_code + renameNoExcept(const std::filesystem::path & path, const std::filesystem::path & finalPath) noexcept + { + std::error_code error; + std::filesystem::rename(path, finalPath, error); + return error; + } +} -- cgit v1.3