Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Negitivefrags
on March 17, 2024
|
parent
|
context
|
favorite
| on:
C++ Exit-Time Destructors
The other way to prevent all destructors running is _exit(0);
I tend to add that to software I write inside an #ifdef NDEBUG.
The OS does the work faster.
leg
on March 17, 2024
[–]
std::quick_exit() also works, though you can decide if it's worthwhile to allow parts of the program to register functions to be called at quick exit time.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I tend to add that to software I write inside an #ifdef NDEBUG.
The OS does the work faster.