Требуется ли для std::filesystem::last_write_time минимальная версия Windows 10?C++

Программы на C++. Форум разработчиков
Anonymous
Требуется ли для std::filesystem::last_write_time минимальная версия Windows 10?

Сообщение Anonymous »

Я использую std::filesystem::last_write_time, который выдает исключение при различных установках Windows.
Минимальный пример кода:

Код: Выделить всё

#include 
#include 
#include 

int main()
{
auto last_write_time = std::filesystem::temp_directory_path() / "last_write_time.txt";
std::ofstream(last_write_time.c_str()) 

Подробнее здесь: [url]https://stackoverflow.com/questions/79192189/does-stdfilesystemlast-write-time-require-a-minimum-windows-10-version[/url]

Вернуться в «C++»