Код: Выделить всё
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]
Мобильная версия