3 ms·
Seems okay to me? RAII would make it tidier but the nesting is a simple way to handle cleaning up if you fail part-way through.
by taspeotis 10y ago
Seems okay to me? RAII would make it tidier but the nesting is a simple way to handle cleaning up if you fail part-way through.