jeudi 22 septembre 2016

std::runtime_error calls std::terminate but hangs

The following code just hangs without returning control to the shell, printing only the following message: "terminate called after throwing an instance of std::runtime_error"

#include <stdexcept>
int main() { throw std::runtime_error("exception"); return 0; }

Why doesn't this abort the process and return control to the shell?

Aucun commentaire:

Enregistrer un commentaire