Would std::basic_string be preferable to std::wstring on Windows?

后端 未结 3 2367
遇见更好的自我
遇见更好的自我 2021-02-20 13:36

As I understand it, Windows #defines TCHAR as the correct character type for your application based on the build - so it is wchar_t in UNICODE builds and char

3条回答
  •  孤街浪徒
    2021-02-20 13:51

    One thing to keep in mind. If you decide to use std::wstring all the way in your program, you might still need to use std::string if you are communicating with other systems using UTF8.

提交回复
热议问题