|
|
|
|
|
by cv5005
41 days ago
|
|
>One need to write it manually each time in each function where some cleanup is needed. You can structure your code to not need cleanup in every function. The biggest problem with destructors is, how do you handle errors? close() can fail you know? |
|