У нас вы можете посмотреть бесплатно Error reporting in C++ - std::expected (13/13) или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Join me in these bi-weekly series to explore the topic of error reporting in C++. The focus of this course is the design of functions that normally return a value, but an error may occur so, what should they return instead? In this video we will be looking at returning an `std::expected` type of an error code and the contents of the file. `std::expected` is a type that was added to the standard library as of C++23 and is essentially a specialization of a `variant`. This approach allows us to distinguish between different errors, protect the contents of the file against accidental access and has some cool functional features that can make it a very powerful tool. The course is also available FOR FREE on Udemy. It includes coding exercises so you can practice what you have learned. Check it out and please consider leaving a review if you find it helpful: https://www.udemy.com/course/error-re...