c++ - BOOST_FILESYSTEM_VERSION 2 path.native_file_string() 的 BOOST_FILESYSTEM_VERSION 3 模拟是什么?

标签 c++ boost path boost-filesystem

所以我尝试移植我的旧项目(从 boost 1.44 到 1.61)我发现 boost::filesystem v3 中没有 path.native_file_string()...

那么 boost::filesystem v3path.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/

相关文章:

c++ - 有没有办法将整个文件从文件系统微型过滤器驱动程序(内核模式)传递到用户模式应用程序?

c++ - 获取数独 block 的坐标

c++ - Boost Json 写入错误:没有匹配函数来调用‘boost::property_tree::basic_ptree<std::__cxx11

c++ - boost 安装 : missing argument global-setup

boost - ./configure 没有看到/找到 boost 头文件

c++ - 如何通过远程日志库记录可能导致程序崩溃的段错误和运行时错误?

c++ - eclipse MinGW : how to have multi main in one project

PHP:防止文件夹被黑客攻击——如果路径中有 ../?

java - 如何在没有管理员的情况下在USB驱动器上安装android studio

linux - 如何设置 bashrc bash_profile