Skip to content

How to end a program #462

@elbeno

Description

@elbeno

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions