Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

Termination is likely the most sensible reaction when a program reaches an irrecoverable state, notably when invariants are violated. The standard ways to terminate are std::abort (C) and std::terminate (C++). Both approaches allow for custom handlers (albeit very limited in the case of std::abort). std::abort: https://lnkd.in/e83EWMJv std::terminate: https://lnkd.in/e8SKHCCS #cpp #cplusplus #coding #programming #dailybiteofcpp

  • No alternative text description for this image
  • No alternative text description for this image
Hristo Iliev

Ubisoft Sofia411 followers

2y

What are you toughts on std::exit then?

Like
Reply

To view or add a comment, sign in

Explore content categories