3 ms·
Yeah I literally have not had a single memory leak since I started using unique_ptr and shared_ptr everywhere. I have had a couple resource leaks with C APIs,
by TillE 4y ago
Yeah I literally have not had a single memory leak since I started using unique_ptr and shared_ptr everywhere.
I have had a couple resource leaks with C APIs, though even they could have been avoided with unique_ptr and a custom deleter.