Код: Выделить всё
#error The header providing std::experimental::filesystem is deprecated by Microsoft \
and will be REMOVED. It is superseded by the C++17 header providing std::filesystem. \
You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that you have received this warning.
Код: Выделить всё
#include
#include
#include
#include
#include //If I will disable it nothing happens.
#include //If I will disable it happens another error.
namespace fs = std::experimental::filesystem;
using namespace std;
Поэтому я вставляю этот код отсюда:
Код: Выделить всё
#ifdef __cpp_lib_filesystem
#include
using fs = std::filesystem;
#elif __cpp_lib_experimental_filesystem
#include
using fs = std::experimental::filesystem;
#else
#error "no filesystem support ='("
#endif
Как проще всего устранить эту ошибку?
Подробнее здесь: https://stackoverflow.com/questions/595 ... erimentalf