messaging_system icon indicating copy to clipboard operation
messaging_system copied to clipboard

Build error due to the use of std::wfstream and std::string.

Open chosle12 opened this issue 6 months ago • 2 comments

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.

chosle12 avatar Aug 20 '24 15:08 chosle12