简体   繁体   中英

Where is wpath in VS2015

Just upgraded to VS 2015 (from VS 2013). Tried to compile my projects but wpath (which I use a LOT!) is not recognized. Open the filesystem file:

...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.

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.

If you want to get a string from the path, you use eg path::wstring to get a wide-character string of the path.

Also see this generic filesystem reference .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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