cpp_weekly
cpp_weekly copied to clipboard
How to end a program
Channel
C++Weekly
Topics
How to safely and effectively cause (abnormal) termination of a program when something goes wrong.
- std::terminate? std::abort? std::exit? std::quick_exit?
- assert?
- throw unhandled exception?
- cause processor exception (many ways people try to do this involve UB eg dereferencing a null pointer)
- other?
Also - how to test this?
Length
Not sure. Long form? Multi part? There's probably a lot to cover here.