- fix compilation on Windows

This commit is contained in:
Dmytro Bogovych 2025-12-12 07:06:49 +03:00
parent 186ec4ccb4
commit 786cefed45
2 changed files with 9 additions and 0 deletions

View File

@ -311,3 +311,10 @@ Logger::operator << (const std::string_view& data)
*mStream << data; *mStream << data;
return *this; return *this;
} }
Logger&
Logger::operator << (const std::filesystem::path& p)
{
*mStream << p;
return *this;
}

View File

@ -8,6 +8,7 @@
#include <string> #include <string>
#include <sstream> #include <sstream>
#include <filesystem>
#ifdef _WIN32 #ifdef _WIN32
# include <winsock2.h> # include <winsock2.h>
@ -125,6 +126,7 @@ public:
Logger& operator << (const int64_t data); Logger& operator << (const int64_t data);
Logger& operator << (const unsigned int data); Logger& operator << (const unsigned int data);
Logger& operator << (const uint64_t data); Logger& operator << (const uint64_t data);
Logger& operator << (const std::filesystem::path& p);
protected: protected:
LogGuard mGuard; LogGuard mGuard;