【发布时间】:2010-09-28 12:24:44
【问题描述】:
有没有办法将 boost::filesystem::path 与 unicode 文件路径一起使用? 特别是我想将它与 std::wstring 一起使用,而不是 std::string。
我在 Windows 平台上工作,有时我需要处理一个包含 unicode 字符的文件路径。
【问题讨论】:
-
注意:unicode和wstring不一样,wstring指的是宽字符(通常是16bits),unicode指的是字符编码,可以是8bit、16bit甚至32bit。
标签: c++ path boost-filesystem