3 ms·
Just use a finally block to free the array even in case of exceptions. Or does C++ not have finally blocks?
by LessDmesg 7y ago
Just use a finally block to free the array even in case of exceptions. Or does C++ not have finally blocks?
- rleigh 7y agoIt does not have finally blocks. However, correct use of RAII should be used to automatically free resources as they go out of scope.