Which compilers support std::filesystem?

岁酱吖の 提交于 2021-01-27 02:55:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!