Write secure code with assertions (assert and static_assert) | Modern Cpp Series Ep. 87

Опубликовано: 09 Сентябрь 2022
на канале: Mike Shah
5,652
273

►Full C++ Series Playlist:    • The C++ Programming Language  
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel:    / @mikeshah  

►Lesson Description: In this lesson I will show you one way to catch bugs at run-time, and one way to catch bugs at compile-time. The assert statement (from C) is available to us in C++. Assertions serve as contracts of thing that must absolutely be true, and if they're not, the safest thing to do is for our program to terminate. In modern C++ we have available to use static_assert which can check boolean-constexpr expressions to see if they pass the test, and catching bugs at compile-time is often much easier on us in the long run!

►YouTube Channel:    / mikeshah  
►Please like and subscribe to help the channel!


Смотрите видео Write secure code with assertions (assert and static_assert) | Modern Cpp Series Ep. 87 онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Mike Shah 09 Сентябрь 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 5,652 раз и оно понравилось 273 посетителям.