Categories
Archives
Blogroll
Meta
Tag Archives: RAII
Shared pointers, and why you should use them
NOTE: The ideas expressed below are in part based on the book Effective C++ by Scott Myers. He uses auto_ptr in his example, but essentially the lesson is the same. Let’s face it: pointers are dangerous. If you allocate something, … Continue reading