std::filesystem::path似乎不知道Windows 长路径 magic prefix。这是每个设计还是有可以使用的模式/标志/编译器开关/第三方库?
铁
C:\temp\test.txt
root_name
C:
root_path
C:\
\\?\C:\tmp\test.txt
\\?
\\?\
我希望它们是C:,C:\因为\\?\它不是路径,而只是一个用于解决旧版 Windows 260 字符路径限制的标签。
请参阅compilerexplorer 上的完整示例。
c++ windows c++17 std-filesystem long-path
c++ ×1
c++17 ×1
long-path ×1
std-filesystem ×1
windows ×1