...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <cstdlib> void throwing_func() noexcept(false); void f() { // neverNot invoked by the program except as an exit handler. throwing_func(); } int main() { if (0 != std::atexit(f)) { // Handle error } // ... } |
...
...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <cstdlib> void throwing_func() noexcept(false); void f() { // neverNot invoked by the program except as an exit handler. throwing_func(); } int main() { if (0 != std::atexit(f)) { // Handle error } // ... } |
...