vs2019 filesystem問題 #error The header providing std::experimental::filesystem is deprecated by Microsoft \。。。



1、#include <experimental/filesystem> 
旧版本文件,将产生错误:
#error The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft \
and will be REMOVED. It is superseded by the C++17 <filesystem> header providing std::filesystem. \
You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that you have received this warning.

2、#include <filesystem>
修改后成功运行。
————————————————
原文链接:https://blog.csdn.net/HUANG_XIAOJUN/article/details/103208551


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM