DEV Community

Discussion on: Best Practices for Memory Management in C++: How Do You Prevent Leaks and Optimize Resource Usage?

Collapse
 
baduit profile image
Lena

Great summary

I will just add that the default smart pointer is std::unique_ptr not std::shared_ptr