2 ms·
Yes. The universal complaint, among exception complainers, is "I don't know if an exception might happen here." Easy: yes, it might; code accordingly. Cleanup c
by ncmncm 4y ago
Yes. The universal complaint, among exception complainers, is "I don't know if an exception might happen here." Easy: yes, it might; code accordingly. Cleanup code goes in destructors, where it gets well exercised on every run, exception or no. If you need a type to have the destructor for, make the type.