问题
Thanks to C++11, after a long relationship with boost, the last component that makes me depend on it is the filesystem. std::filesystem seems to be implemented as experimental according to the link: Filesystem library
Since it mimics boost::filesystem, I can easily adapt my project into std and get rid of huge boost dependency. Which compilers support it and would it matter to use it even though it is experimental since it mimics boost (since there is no time schedule for when it will be standardized)?
回答1:
- Visual Studio has been shipping various versions of the filesystem library for a couple of releases. I believe that VS 2013 was the first one to include it.
- libstdc++ shipped their file system library as part of the 5.3 release.
- libc++ has a file system library in development, but it will not be part of the upcoming 3.8 release.
Note that std::experimental::filesystem
is not yet part of the C++ standard, but rather defined in a Technical Specification. This means that they are subject to change before they become part of the standard. (which is why they are in the std::experimental
namespace)
来源:https://stackoverflow.com/questions/34990928/which-compilers-support-stdfilesystem