所以我尝试移植我的旧项目(从 boost 1.44 到 1.61)我发现 boost::filesystem v3 中没有
path.native_file_string()
...
那么 boost::filesystem v3
中 path.native_file_string()
的模拟是什么? (我不想再使用 v2 但我需要像 native_file_string 这样的功能)
最佳答案
如果你在谈论 path::external_file_string
(目前 Boost.FileSystem v2 中没有 native_file_string
),等价于 path::native
。这将返回主机操作系统格式的字符串,使用该系统的本地字符串类型(Windows 的 std::wstring,Linux 的 std::string 等)。
关于c++ - BOOST_FILESYSTEM_VERSION 2 path.native_file_string() 的 BOOST_FILESYSTEM_VERSION 3 模拟是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6398358/