messaging_system
messaging_system copied to clipboard
Build error due to the use of std::wfstream and std::string.
Hello,
I'm encountering a build error in the logging.cpp file due to the following code:
std::wfstream stream;
std::string temp, source;
stream << temp;
stream << source;
Since std::wfstream is used for wide-character streams, it cannot directly handle std::string types like temp and source through the << operator, resulting in a build failure.
To resolve this issue, it would be advisable to either convert temp and source to std::wstring, or alternatively, switch to using std::fstream for regular character streams.
Please review this and consider the appropriate solution.
Thank you.