vs2019 filesystem問題 #error The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft \。。。
问题:
#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.
对策:
改为#include <filesystem>,成功运行。
————————————————
原文链接:https://blog.csdn.net/HUANG_XIAOJUN/article/details/103208551
本文来自博客园,作者:꧁执笔小白꧂,转载请注明原文链接:https://www.cnblogs.com/qq2806933146xiaobai/p/12153852.html

浙公网安备 33010602011771号