简体   繁体   English

VS2015中的wpath在哪里

[英]Where is wpath in VS2015

Just upgraded to VS 2015 (from VS 2013). 刚刚升级到VS 2015(来自VS 2013)。 Tried to compile my projects but wpath (which I use a LOT!) is not recognized. 试图编译我的项目,但无法识别wpath (我使用很多!)。 Open the filesystem file: 打开filesystem文件:

...Microsoft Visual Studio 14.0\\VC\\include\\filesystem

compare it with: 比较它:

...Microsoft Visual Studio 12.0\\VC\\include\\filesystem

and wpath is no longer there. 并且wpath不再存在。

It used to be defined as: 过去它被定义为:

typedef basic_path<wstring, wpath_traits> wpath;

what happened? 发生了什么?

If you see this MSDN <filesystem> reference , you will see that it mentions "(V3)", meaning it is based on the Boost filesystem version 3 API (which is what the upcoming C++ standard will use as base) which doesn't have eg basic_path or wpath , instead there is only the path class. 如果您看到此MSDN <filesystem>参考 ,您将看到它提到“(V3)”,这意味着它基于Boost文件系统版本3 API (这是即将推出的C ++标准将用作基础),而不是有例如basic_pathwpath ,而只有path类。

If you want to get a string from the path, you use eg path::wstring to get a wide-character string of the path. 如果要从路径中获取字符串,可以使用例如path::wstring来获取path::wstring的宽字符串。

Also see this generic filesystem reference . 另请参阅此通用文件系统参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM