C++ Smart Pointers
Smart pointers are my favorite C++ feature set. With C, it’s up to the programmer to keep pointer details in context - and when that happens, errors pop up like weeds. I can’t begin to count the number of times I have fixed: Memory leaks Freeing memory that shouldn’t be freed (e.g. pointer to statically …