kcenon / messaging_system

Asynchronous TCP communication system in order to support micro-service architecture.
Other
31 stars 2 forks source link

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

Open chosle12 opened 3 weeks ago

chosle12 commented 3 weeks ago

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.

kcenon commented 3 weeks ago

Thank you for your question.

The code was prepared with Windows in consideration, but it appears that the problem occurred because it wasn't actually tested on Windows, resulting in temp not being created as a wstring. I will modify this part and apply the changes.

kcenon commented 2 weeks ago

Thank you for letting me know. Here's a polite response in English: I apologize for the delay in my response. Due to personal circumstances, I have not yet been able to proceed with addressing the issue we discussed earlier. Additionally, I am in the process of preparing a new project using C++20. I will be sure to share the details with you as soon as they are ready. Thank you for your patience and understanding. I look forward to our continued collaboration on these programming topics.