2 ms·
"Most people" using new/delete with raw pointers = memory leaks and crashes, guaranteed. unique_ptr and shared_ptr are really simple and incredibly useful. If
by TillE 9y ago
"Most people" using new/delete with raw pointers = memory leaks and crashes, guaranteed.
unique_ptr and shared_ptr are really simple and incredibly useful. If you're too scared to use them, you should not be using C++ at all.
- faragon 9y agoWell, I'm using C++ since 1993, so go figure.