Switching from std::string to std::wstring for embedded applications?

后端 未结 3 498
情书的邮戳
情书的邮戳 2021-01-03 07:11

Up until now I have been using std::string in my C++ applications for embedded system (routers, switches, telco gear, etc.).

For the next project, I am considering t

3条回答
  •  执笔经年
    2021-01-03 07:58

    You might get some headache because of the fact that the C++ standard dictates that wide-streams are required to convert double-byte characters to single-byte when writing to a file, and how this conversion is done is implementation-dependent.

提交回复
热议问题