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

Published: 09 September 2022
on channel: 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!


Watch video Write secure code with assertions (assert and static_assert) | Modern Cpp Series Ep. 87 online, duration hours minute second in high quality that is uploaded to the channel Mike Shah 09 September 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 5,652 times and liked it 273 visitors.