VS2015中的wpath在哪里

Where is wpath in VS2015

刚升级到 VS 2015(从 VS 2013)。 试图编译我的项目,但无法识别 wpath(我经常使用它!)。 打开 filesystem 文件:

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

比较:

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

wpath不再存在。

以前定义为:

typedef basic_path<wstring, wpath_traits> wpath;

发生了什么事?

如果您看到 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 e.g. basic_path or wpath, instead there is only the path class。

如果你想从路径中获取一个字符串,你可以使用例如path::wstring获取路径的宽字符串

另见 this generic filesystem reference