Может ли std :: fileystem :: path :: wstring () изменить errno?C++

Программы на C++. Форум разработчиков
Anonymous
Может ли std :: fileystem :: path :: wstring () изменить errno?

Сообщение Anonymous »

У меня есть функция, которая сообщает об ошибках errno :

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

void reportError(int err, const std::wstring& fname);
< /code>
шаблон вызова выглядит так: < /p>
    int fd = open(fileName.c_str(), O_RDONLY);
if (fd < 0)
reportError(errno, fileName.wstring());   // 

Подробнее здесь: [url]https://stackoverflow.com/questions/79660063/can-stdfilesystempathwstring-modify-errno[/url]

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